I’m using setuptools 0.6 to package my code. By default when I type python setup.py sdist, the tool creates a folder dist directly in the same folder of my script. What I can do to change this default folder?
Edit: Another question is, if my setup script and my package folder are not in the same folder, what can I do to specify the exact path of the package?
Thanks
I’m using setuptools 0.6 to package my code. By default when I type python
Share
Use the
--dist-dir=[differentdir]option. Frompython setup.py sdist --help:You can specify the top-level package directory with the
package_dirkeyword argument tosetup():I can recommend the Python Packaging User Guide for a good tutorial on how to package your python projects.