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 sdist --formats=gztar,zip,bztar,ztar,tar
running sdist
error: package directory 'filenameX' does not exist
turns out the problem was, my had the following line:
py_modules = [''],
This should be:
py_modules = ['filenameX'],
FIXED IT! Yay! Now it proceeds nicely.
Post a Comment