<br><br><div class="gmail_quote">2010/4/27 Michael Foord <span dir="ltr"><<a href="mailto:fuzzyman@voidspace.org.uk">fuzzyman@voidspace.org.uk</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div bgcolor="#ffffff" text="#000000">
Hello David,<br>
<br>
Not sure how close distutils is to working with IronPython.<br>
<br>
The correct way to install packages for an installed version of
IronPython *should* be to use the "user site-packages" rather than the
global site-packages (which won't be writable for IronPython without
admin rights):<br>
<br>
   <a href="http://www.python.org/dev/peps/pep-0370/" target="_blank">http://www.python.org/dev/peps/pep-0370/</a><br>
   <br>
   ipy setup.py install --user<br>
<br>
setuptools is a complex, horrible old beast and I wouldn't like to
guess at its IronPython compatibility. Shame MySQLdb depends on it for
an install - but MySQLdb almost certainly depends on C extensions
anyway. In the long run distutils2 will replace setuptools entirely
(for CPython the distribute package has *already* replaced it whilst
remaining compatible). The distutils2 guys are *very* open to input -
so 'someone' should run the tests with IronPython and report any
problems.<br>
<br></div></blockquote><div><font class="Apple-style-span" color="#FF0000">Yes, you're right. MySQLdb does have some c files that need to be compiled. And I don't think Windows got a good compile environment for this. This bothers me to much. For CPython2.6, I have to find a binary package of MySQLdb, but for IronPython, I can't find any binary.</font></div>
<div>Â </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div bgcolor="#ffffff" text="#000000">
distutils used to break *after* installing a pure-Python package for
IronPython when it attempted to do byte-code compilation. This specific
problem is fixed in trunk but I don't know if it is fixed in the
version of distutils shipped with IronPython 2.6. This was the last
step - so the error was alarming but wouldn't stop the install.<br>
<br></div></blockquote><div><font class="Apple-style-span" color="#FF0000">I will try it later. Dont have too much time for test now.</font></div><div>Â </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div bgcolor="#ffffff" text="#000000">
All the best,<br>
<br>
Michael Foord<div><div></div><div class="h5"><br>
<br>
On 27/04/2010 07:19, David Shieh wrote:
</div></div><blockquote type="cite"><div><div></div><div class="h5">Hi guys,
<div><br>
</div>
<div>I don't whether somebody else asked this question, but I am
really confused about this.</div>
<div>I have already installled IronPython2.6 and add it into my
system's path, so I can directly type ipy to start IronPython2.6.</div>
<div>So I tried " ipy setup.py install" to install MySQLdb, but it
give me an error said no module named setuptools. Then I download
setuptools and install it, it gave me an error:</div>
<div>No module named pkg_resources.</div>
<div><br>
</div>
<div>Why doesn't IronPython2.6 ship with a setuptools like
easy_install ?</div>
<div>Now, I can't install any 3rd party package and don't know how to
fix it.</div>
<div><br>
</div>
<div>Regards,</div>
<div>David</div>
<div><br>
-- <br>
----------------------------------------------<br>
Attitude determines everything !<br>
----------------------------------------------<br>
<br>
<br>
</div>
</div></div><pre><fieldset></fieldset>
_______________________________________________
Users mailing list
<a href="mailto:Users@lists.ironpython.com" target="_blank">Users@lists.ironpython.com</a>
<a href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com" target="_blank">http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</a>
</pre>
</blockquote>
<br>
<br>
<pre cols="72">--
<a href="http://www.ironpythoninaction.com/" target="_blank">http://www.ironpythoninaction.com/</a>
<a href="http://www.voidspace.org.uk/blog" target="_blank">http://www.voidspace.org.uk/blog</a>
READ CAREFULLY. By accepting and reading this email you agree, on behalf of your employer, to release me from all obligations and waivers arising from any and all NON-NEGOTIATED agreements, licenses, terms-of-service, shrinkwrap, clickwrap, browsewrap, confidentiality, non-disclosure, non-compete and acceptable use policies (â€BOGUS AGREEMENTSâ€) that I have entered into with your employer, its partners, licensors, agents and assigns, in perpetuity, without prejudice to my ongoing rights and privileges. You further represent that you have the authority to release me from any BOGUS AGREEMENTS on behalf of your employer.
</pre>
</div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.ironpython.com">Users@lists.ironpython.com</a><br>
<a href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com" target="_blank">http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>----------------------------------------------<br>Attitude determines everything !<br>----------------------------------------------<br><br><br>