packaging and installing

Godson Gera godson.g at gmail.com
Tue Dec 14 10:12:06 EST 2010


On Tue, Dec 14, 2010 at 6:59 PM, Brian Blais <bblais at bryant.edu> wrote:

>  On Dec 13, 2010, at 12:30 PM, Godson Gera wrote:
>
> >
> >
> > On Mon, Dec 13, 2010 at 10:46 PM, Brian Blais <bblais at bryant.edu> wrote:
> >> Hello,
> >>
> >> I was wondering if there is any standard or suggested way of installing
> packages *without* going to the commandline.  I often have students who,
> from there experience in Windows, have never looked at the commandline
> before and it is a bit of a challenge to get them to install something (i.e.
> go to the commandline, cd over to the proper folder, type python setup.py
> install, etc...).  I've never seen a package with something like a
> "compileme.bat", but was wondering if there is some suggested way of doing
> this or some reasons *not* to do this.  I can always write my own (1-line)
> .bat file, but I didn't want to reinvent the wheel.  Perhaps there is a
> better way for me to do this, ideally in a platform independent way.
> >>
> > You don't even have to write a bat file. Python's distutils package
> allows you to build exe file which creates generic windows wizard window for
> installing packages.
> >
> > Take a look at distutils package
> http://docs.python.org/distutils/builtdist.html
> >
>
> that's very interesting, and I didn't realize that.  it may be useful, and
> solves part of my problem, but the other part is that I am not on a windows
> machine and have to distribute to windows users.  Or perhaps I am on
> windows, and need to distribute to Mac.  It's great that python itself is so
> cross-platform, but the installation process for packages seems a lot less
> so.
>
> Don't blame python for that. command line is least command denominator
across all platforms and you don't wanted your audience to visit command
line. As of 2010 you have to be on specific platform to make distributions
for that platform. This kind of asking for toomuch from a few MB sized
python. You need to make your own python distro to support all platform
specific(exe, msi, ELF, app, rpm, deb  etc etc ) packaing in one
installation whose size may swell over many MBs

or resort back to wiriting batch file on windows and bash and sh scripts on
*nix platforms.
-- 
Thanks & Regards,
Godson Gera
Asterisk Consultant India <http://godson.in/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20101214/e667bc02/attachment.html>


More information about the Python-list mailing list