Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

setup.py and PyPI

2 views
Skip to first unread message

Ethan Furman

unread,
Dec 14, 2009, 12:04:35 PM12/14/09
to Python
Greetings!

I'm using Python 2.5 on Windows XP, and trying to get the upload portion
of setup.py to work. According to what I have found, I can put my info
into a .pypirc file to have the process pick up my username/password and
upload the files.

I have tried putting this file into the same folder I'm running setup.py
from, into my home folder (USERPROFILE, I think) -- and the really
frustrating part is that it worked a couple times (but maybe that was
from my home computer) but mostly it does not.

Any and all pointers gratefully accepted!

~Ethan~

Philip Semanchuk

unread,
Dec 14, 2009, 12:17:19 PM12/14/09
to Python

When it fails, how does it fail?


Ethan Furman

unread,
Dec 14, 2009, 1:00:40 PM12/14/09
to Python

python setup.py sdist bdist --format wininst upload

[snip]

running upload
Submitting dist\dbf-0.87.7.zip to http://pypi.python.org/pypi
Upload failed (401): You must be identified to edit package information

Philip Semanchuk

unread,
Dec 14, 2009, 1:39:37 PM12/14/09
to Python (General)

Looks like there's known problems with this under Windows that might
affect your version of Python, depending on which version you have.
http://bugs.python.org/issue1741

Setting a HOME environment variable to point to wherever you have
your .pypirc file might help.

Hope this helps
P

Ethan Furman

unread,
Dec 14, 2009, 5:25:31 PM12/14/09
to Philip Semanchuk, Python (General)

The HOME variable did it!

Many, many thanks!!

~Ethan~

0 new messages