Best way to deal with .pyc files?

Michael Gmelin freebsd at grem.de
Thu Dec 6 19:31:26 UTC 2018



> On 6. Dec 2018, at 19:21, John Baldwin <jhb at freebsd.org> wrote:
> 
> 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?

Pre-generate the pyc files on package build and install them with the port, so they become part of plist (there are examples of that in the ports tree, whenever possible for both py27 and py3x).

Best,
Michael


> -- 
> John Baldwin
> 
> 
> _______________________________________________
> freebsd-ports at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscribe at freebsd.org"



More information about the freebsd-ports mailing list