On 28/04/2010 03:48, David Shieh wrote:
[snip....]
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.
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.
The Windows compile environment for Python C extensions is most easily
setup by having the correct version of Visual Studio installed.
Packages for Python based on C extensions normally *don't work at all in
IronPython* - this is why you won't find binaries for IronPython for C
extensions...
One way to use Python C extensions with IronPython is through Ironclad:
http://www.resolversystems.com/products/ironclad/
All the best,
Michael Foord
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.
I will try it later. Dont have too much time for test now.
All the best,
Michael Foord
On 27/04/2010 07:19, David Shieh wrote:
Hi guys,
I don't whether somebody else asked this question, but I am
really confused about this.
I have already installled IronPython2.6 and add it into my
system's path, so I can directly type ipy to start IronPython2.6.
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:
No module named pkg_resources.
Why doesn't IronPython2.6 ship with a setuptools like easy_install ?
Now, I can't install any 3rd party package and don't know how to
fix it.
Regards,
David
--
----------------------------------------------
Attitude determines everything !
----------------------------------------------
_______________________________________________
Users mailing list
Users@lists.ironpython.com <mailto:Users@lists.ironpython.com>
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
--
http://www.ironpythoninaction.com/
http://www.voidspace.org.uk/blog
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.
_______________________________________________
Users mailing list
Users@lists.ironpython.com <mailto:Users@lists.ironpython.com>
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
--
----------------------------------------------
Attitude determines everything !
----------------------------------------------
_______________________________________________
Users mailing list
Users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
--
http://www.ironpythoninaction.com/
http://www.voidspace.org.uk/blog
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.
_______________________________________________
Users mailing list
Users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com