Links
- See also: Environment
- Config Files
- Locations, names, syntax, etc.
- On all platforms, the “personal” file can be temporarily disabled by passing the –no-user-cfg option. (i.e. $HOME/.pydistutils.cfg on unixish machines.)
- distutils.cfg syntax
- Locations, names, syntax, etc.
- distutils module
- Installing with distutils
- Alternate Installation
- The alternate installation schemes are
mutually exclusive: you can pass
--user
, or--home
, or--prefix
and--exec-prefix
, or--install-base
and--install-platbase
, but you can’t mix from these groups. - Custom Installation
- Building Extensions: Tips and Tricks
- Distributing Python Modules
- Installing with distutils
Bag
# Build and keep source tree clean python setup.py build --build-base=/tmp/build-foo-1.0.0 # Create a source distribution package for installation elsewhere. python setup.py sdist # What types of binary distributions are supported? python setup.py bdist --help-formats # Build rpm. python setup.py bdist_rpm # # Build windows .exe setup file. python setup.py bdist_wininst