Creating offline Python package with native libs?

Repository of web frameworks and applications for Microsoft IIS.
User avatar
Posts: 56
Joined: 01 Nov 2013, 01:50

Creating offline Python package with native libs?

01 Nov 2013, 01:53

Hi,

I'm test-driving Zoo for our IIS deployment, and very like what I see.
The performance on 2012 is especially one of the strong points, you've done a great job!

As we will need to install to servers closed to Internet, I've read the offline packages guide, and while all clear, I have a question standing:
In the event we need native libs (Pillow, pycrypto, pyodbc, etc...), how it's possible to package them to offline installation as well?

Regards.

User avatar
Posts: 110
Joined: 07 Mar 2012, 10:22

Re: Creating offline Python package with native libs?

01 Nov 2013, 07:26

Hello!

The easiest way to add native modules to your app is to install them (or simply copy them) directly into virtualenv located in the app in developer environment and then commit it. When the app is deployed in production, it will already have virtualenv with all necessary dependencies.

Offline installation can be used for products added into Web Platform Installed feed only.

Thank you.

User avatar
Posts: 56
Joined: 01 Nov 2013, 01:50

Re: Creating offline Python package with native libs?

05 Nov 2013, 17:16

So the best way is to install them right into the virtual environment, and then export the whole site?

Then on host with Python hosted package, it will work out of box?

User avatar
Posts: 110
Joined: 07 Mar 2012, 10:22

Re: Creating offline Python package with native libs?

06 Nov 2013, 06:12

Yes, that's right.

User avatar
Posts: 56
Joined: 01 Nov 2013, 01:50

Re: Creating offline Python package with native libs?

07 Nov 2013, 11:37

Thanks!

Return to Helicon Zoo

Who is online

Users browsing this forum: No registered users and 20 guests