[BangPypers] Packaging in Python

Vishal vsapre80 at gmail.com
Mon Jan 13 09:20:41 CET 2014


Hello,

We have tried the following in the past and seemed to work ok...with some
work though. See if it fits you.

1) Use bbfreeze to freeze all your dependencies in one folder
2) Use InnoSetup to create a setup
3) distribute the setup.

This will create a single installable distribution for your customers. The
first step is the hardest. We used bbfreeze because it worked across
Windows and MacOsX. InnoSetup is Windows only.

you can also use UPX to compress your bbfrozen stuff. Dont use it after the
setup is created. With some effort you can also make the setup such that
your UPXed executables/DLLs are restored just after they are installed.
This is because UPXed DLLs cannot really be shared across the OS and so at
runtime each new instance is a new one. That becomes memory heavy.

Hope you get the gist.

If not, send me an email.

Thanks and best regards,
Vishal Sapre
www.righill.biz (we do serious inhouse software)


Thanks and best regards,
Vishal Sapre

---
"Life is 10% how you make it, and 90% how you take it"
"बहुजन हिताय, बहुजन सुखाय (Benefit for most people, Happiness for most
people.)"
---
Please DONT print this email, unless you really need to. Save Energy &
Paper. Save the Earth.


On Sun, Jan 12, 2014 at 11:52 AM, Saager Mhatre <saager.mhatre at gmail.com>wrote:

> On Jan 10, 2014 4:26 AM, "Venu Murthy" <venum at thoughtworks.com> wrote:
> >
> > Hello friend!
> >
> > This was the first time, we are actually writing some serious code and it
> > found it quite not like Python when packing for the code to be deployed
> on
> > a windows machine.
> >
> > We were using the setuptools build and install to do this... and it
> wasn't
> > easy and finally had to install PIP on our windows machine install the
> > dependencies... please let me know if there is a better way of packaging
> > and deployment for python!
> >
>
> You're half way there.
>
> distribute + pip + virtualenv is the way to go.
>
> Use pypiserver to host your private packages if you don't want to push them
> to PyPI; or Gemfury if you want a hosted solution.
>
> However, if you're developing on python3, you might have to look at the new
> distutils 'cause it covers (at least tries to cover) the feature set from
> all those.
>
> - d
> _______________________________________________
> BangPypers mailing list
> BangPypers at python.org
> https://mail.python.org/mailman/listinfo/bangpypers
>


More information about the BangPypers mailing list