[Python-bugs-list] [ python-Bugs-796042 ] sdist ignores scripts argument in setup

SourceForge.net noreply at sourceforge.net
Fri Aug 29 11:55:54 EDT 2003


Bugs item #796042, was opened at 2003-08-27 11:09
Message generated for change (Settings changed) made by akuchling
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=796042&group_id=5470

Category: Distutils
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Anna Ravenscroft (annarave)
>Assigned to: A.M. Kuchling (akuchling)
Summary: sdist ignores scripts argument in setup

Initial Comment:
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

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=796042&group_id=5470



More information about the Python-bugs-list mailing list