On Sun, May 27, 2012 at 11:19 AM, Todd DeLuca <todddel...@gmail.com> wrote: > I recently failed to upload a project to pypi using distutils2 and failed to > install the project using pip. Are distutils2 and pip not yet supporting > 'setup.cfg' only projects yet? > > The upload failed to upload the tarball to pypi because of what looks like a > problem encoding a multipart form message with > distutils2.util.encode_multipart(). I tried to fix that problem (using a > base64 encoding) but ran into 500 http return code from the pypi server. > The uploading code seems pretty 'alpha', so I was wondering if anyone is > successfully using 'pysetup' to upload projects to pypi. > > After failing to upload the distribtion, I uploaded it to github and then > registered my project with a github download url. Then I tried installing > my project using pip and that failed too, since I did not have a setup.py, > only a setup.cfg, in the project. > > I'm using python 2.7.3, pip 1.1, and distutils2 from > hg.python.org/distutils2 (pulled and updated) on Mac OS X 10.6.8.
I can't speak for PyPI or pip, but not a lot of stuff works with setup.cfg-only distutils2/packaging projects. Though I'm fairly certain they shouldn't be expected to work yet. Shameless plug, but have you tried d2to1 (http://pypi.python.org/pypi/d2to1)? It allows you to use a setup.cfg with existing tools like pip by way of a simple stub setup.py. It might not suit all your needs, but it also might :) Erik _______________________________________________ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig