there is a very good article on python packaging <div><br></div><div><a href="http://www.aosabook.org/en/packaging.html">http://www.aosabook.org/en/packaging.html</a><br><br><div class="gmail_quote">On Tue, May 31, 2011 at 12:18 AM, dough <span dir="ltr"><<a href="mailto:doug.hellinger@hotmail.com">doug.hellinger@hotmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">On May 29, 10:41 pm, ray <<a href="mailto:r...@aarden.us">r...@aarden.us</a>> wrote:<br>
> I have Python 2.7 on Win7 Pro on a tightly locked down desktop. I<br>
> would like to install Networkx from an egg. From what I have read,<br>
> Setuptools can be used for this.<br>
><br>
> I don't know how to install Setuptools. The exe will not work. On<br>
> execution, it reports that the Python version is not included in the<br>
> registry. Further, I can not input the version and location on the<br>
> subsequent installation screen, the fields will not accept focus so I<br>
> can not input the values.<br>
><br>
> Since the exe will not install, I considered using the Setuptools<br>
> egg. But it requires Setuptools. It appears to be a circle.<br>
><br>
<br>
You're right. Since Setuptools is distributed as an egg, and Python<br>
doesn't natively support eggs,<br>
there can be a "chicken-and-egg" situation.<br>
<br>
> What are some suggestions for installing this?<br>
><br>
> Thanks,<br>
> ray<br>
<br>
You can try downloading ezsetup.py and running it as a python script<br>
(i.e. python ezsetup.py).<br>
It will locate and download the latest version of Setuptools for your<br>
platform and install it.<br>
If HTTP access is blocked, just place the desired egg in the same<br>
folder as ezsetup.py and run<br>
the script again.<br>
<br>
Assuming you can get Setuptools installed correctly, it puts a program<br>
called easy_install.exe<br>
in your <python>\Scripts folder. You can then just run (from the<br>
command line):<br>
<br>
easy_install <package name><br>
<br>
It will hunt, download and install the latest version of the package<br>
for your platform.<br>
You may want to add the path to the Scripts folder to your PATH<br>
environment variable so<br>
you can just run easy_install from any current working directory.<br>
<br>
Hope that helps,<br>
<br>
Doug<br>
<font color="#888888">--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Nitin Pawar<br><br>
</div>