Best way to deal with .pyc files?

John Baldwin jhb at FreeBSD.org
Thu Dec 6 18:21:09 UTC 2018


The devel/gdb port installs python scripts into /usr/local/share/gdb<ver>/python.
If you then run kgdb as root (not that unusual), it will generate .pyc files in
those directories that are not deleted by 'pkg delete'.  What is the best way to
handle this case?  Should the pkg-plist include @rmtry entries for each pyc
file or is there a better way?

-- 
John Baldwin

                                                                            


More information about the freebsd-ports mailing list