[Python-Dev] Re: hook for standalone executable

Jeff Epler jepler at unpythonic.net
Thu Aug 14 15:42:01 EDT 2003


If you install a program in $(prefix), anything executable as a command
goes in $(prefix)/bin, anything used by the executable which is
architecture-dependent goes in $(prefix)/lib, and anything used by the
executable which is not architecture-dependent goes in $(prefix)/share
(preferred) or $(prefix)/lib (accetable).

If there are more than a few support files, then they should go in
$(prefix)/{lib,share}/$(package_name)

Python comes pretty close, but technically you'd want to put all the
.py, .pyc and .pyo files in share/

So I guess that if you had $(prefix)/bin/xyzzy you'd want to look at
$(prefix)/lib/xyzzy.zip and/or $(prefix)/share/xyzzy.zip to see if it's
a (near-)standalone executable.



More information about the Python-Dev mailing list