When writing the setup script for a distribution, section 3.4 explains:
3.4 Installing Scripts
So far we have been dealing with pure and non-pure Python modules, which are usually not run by themselves but imported by scripts.
Scripts are files containing Python source code, intended to be started from the command line. Scripts don't require Distutils to do anything very complicated. The only clever feature is that if the first line of the script starts with #! and contains the word ``python'', the Distutils will adjust the first line to refer to the current interpreter location.
The scripts option simply is a list of files to be handled in this way. From the PyXML setup script:
setup (...
scripts = ['scripts/xmlproc_parse', 'scripts/xmlproc_val']
)
Unfortunately, this doesn't work with sdist unless you ALSO create a manifest.in file. Otherwise, it silently ignores the scripts listed in setup. bdist works just fine, so it's apparently something wrong in sdist.
Please fix this. Thank you.
Anna Ravenscroft
|