[Distutils] Package name != filename, and: Python version information
Phillip J. Eby
pje at telecommunity.com
Fri Feb 23 17:27:16 CET 2007
At 01:30 PM 2/23/2007 +0100, newsgroups at debain.org wrote:
>Hi,
>
>With the following in my setup script:
>
>-------------
>from distutils.core import setup
>setup(name = 'Spiff WikiMarkup',
> [...]
> requires = ['Plex'],
> provides = ['WikiMarkup'],
> [...]
>-------------
>
>1. Distutils generates a tarball named "Spiff WikiMarkup-0.1.tar.gz". How
>can I
>replace the space in the filename by an underscore?
Setuptools fixes this, and various other problems with distribution
filenames. Unfortunately, changing this behavior in the distutils would
result in backward incompatibilities for people who are relying on its
current behavior.
>2. In Python cheese shop, there is a field that shows the Python version
>that is required by a listed package.
>
>I have not found this covered in the documentation: How do you add the Python
>version information into the setup script of a package?
>
>Also, is there a complete keyword list somewhere? This list:
>
>http://docs.python.org/dist/meta-data.html
>
>seems to contain only few of the keywords available (for example, the
>"provides"
>and "requires" keywords are not listed, even though covered in the previous
>chapters of the documentation).
I don't know the answer to these questions, but perhaps someone else here
might.
More information about the Distutils-SIG
mailing list