5

I'm writing some ETL scripts in Iron Python and have found that I could benefit from using the date parser in module dateutil. I know I can use my standard python library by pointing Iron Python at the appropriate location. My scripts, however, will likely run on a machine with Iron Python but without plain vanilla Python installed.

How can I install dateutil (or other standard Python modules) into my Iron Python library?

I've tried simply copying the .egg from the standard site-packages directory to the Iron Python site-packages directory, but this results in an ImportError when I import dateutil.

1 Answer 1

8

IronPython doesn't support eggs (because it doesn't support zipimport), but if you just place the folder containing the .py files in site-packages it should work (as long as it doesn't use a C extension).

Eggs are just zip files, so you may have to rename it to get at the .py files.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.