Monday, October 31, 2011

Python sdist package directory not found: Solved

Just was trying to create a new Python module and submit it to PyPi. Trouble was, when I was doing the standard:
me@mybox ~/myusername/blah
$ python setup.py sdist --formats=gztar,zip,bztar,ztar,tar
running sdist
error: package directory 'filenameX' does not exist
turns out the problem was, my setup.py had the following line:
py_modules = ['filenameX.py'],
This should be:
py_modules = ['filenameX'],
FIXED IT! Yay! Now it proceeds nicely.

No comments: