This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: sdist ignores scripts argument in setup
Type: Stage:
Components: Distutils Versions: Python 2.3
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: fdrake Nosy List: annarave, fdrake
Priority: normal Keywords:

Created on 2003-08-27 15:09 by annarave, last changed 2022-04-10 16:10 by admin. This issue is now closed.

Messages (4)
msg17981 - (view) Author: Anna Ravenscroft (annarave) Date: 2003-08-27 15:09
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
msg17982 - (view) Author: Fred Drake (fdrake) (Python committer) Date: 2004-03-25 22:17
Logged In: YES 
user_id=3066

This is fixed on the trunk as
Lib/distutils/command/build_scripts.py 1.22 and sdist.py 1.57.

I'm not entirely sure this should be backported for Python
2.3.x, but it probably should be.
msg17983 - (view) Author: Fred Drake (fdrake) (Python committer) Date: 2004-03-31 02:03
Logged In: YES 
user_id=3066

Added note about inclusion of scripts in Doc/dist/dist.tex
revision 1.73.  This should be back-ported along with the
actual fix.
msg17984 - (view) Author: Fred Drake (fdrake) (Python committer) Date: 2004-04-01 04:09
Logged In: YES 
user_id=3066

Backported for Python 2.3.4 as:

Lib/distutils/command/build_scripts.py  1.21.8.1
Lib/distutils/command/sdist.py  1.56.14.1
Doc/dist/dist.tex  1.56.8.5
History
Date User Action Args
2022-04-10 16:10:52adminsetgithub: 39137
2003-08-27 15:09:14annaravecreate