Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any Portable IronPython Availabe?

I have developed an application where a small part of the solution is done in ironpython, but when I am migrating to production they (client) are not giving permission to install ironpython.

I am trying to get any portable version of IronPython. So that without installing I can run IronP` code.

Please Help.

like image 433
techrhl Avatar asked Jul 22 '26 17:07

techrhl


1 Answers

There is no need to MSI-install IronPython on the clients you are deploying your application to.

Just XCOPY deploy your application as well as required portions of IronPython (e.g. by grabbing a current ZIP release or getting files from your local installation).

The required files will at least include

  • IronPython.dll,
  • Microsoft.Dynamic.dll,
  • Microsoft.Scripting.dll and
  • Microsoft.Scripting.Metadata.dll

from the correct Platforms-subfolder (e.g. Net45).

If the python standard library is used in your python code (or needs to be available to dynamically loaded code) the Lib-folder (or a subset) has to be included as well.

Should your application be deployed via MSI or a similar mechanism just include relevant IronPython files instead of XCOPYing.

like image 126
Simon Opelt Avatar answered Jul 28 '26 16:07

Simon Opelt



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!