: python-setuptools

View: New views
1 Messages — Rating Filter:   Alert me  

: python-setuptools

by Jerome :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Stephen,


I was not able to generate a windows installer with setup.py :

    python setup.py bdist_wininst
or
    python -c "import setuptools;execfile('setup.py')" bdist_wininst
(build an .exe that includes .egg-info, so that other packages will be able to detect it at runtime.)

also for generating a windows "binary" installer :

   python setup.py bdist_msi

I only generated a simple source package/archive in .zip format :

   python setup.py sdist


Gramps will be a part of python libs, maybe this will help us to provide some packages more easily according to OS or distributions !

For the launcher script under Windows (maybe gramps.pyw), some programs add a line on setup () :

windows = [ {'script':os.path.join('src','gramps'),}],

Also, some __init__.py have not been written yet (package directories), but it will not be so hard to generate them !


Best Regards,
Jérôme


--- En date de : Ven 18.9.09, jerome <romjerome@...> a écrit :

> De: jerome <romjerome@...>
> Objet: Re: [Gramps-windows] [Fixed] :  Gramps, Windows Vista and french locale
> À: "Stephen George" <steve_geo@...>
> Cc: "gramps-windows" <gramps-windows@...>
> Date: Vendredi 18 Septembre 2009, 13h10
> > The source code for GRAMPS is
> common to both linux and
> > windows.
>
> This seems to be OK on setup.py (I did not test it under
> Windows ...)
>
> > What is your python setup tool
>
> was a test, has been added on feature request :
>
> http://www.gramps-project.org/bugs/view.php?id=2621
>
> It is working on my config (Ubuntu 9.04 and python2.6).
> I did not know what should be done with mime icons for
> Windows.
> The last issues are related to some variables for launcher,
> const.py, or man files for posix. And an install issue
> (under Linux), which (over)writes specific os files with
> admin rights... There is also an uninstall class with a log
> file and some config variables on setup.cfg (ex: source
> build in zip format for windows users !).
>
> It is an experimental mix, but for after testing I agree
> with Benny : Gramps could try to use python-setuptools
> rather than Makefile.
>
> Improvements, contributions and additionnal tests are
> welcome !
> I suppose this will be properly coded.
> Currently, this setup.py does the job (like Makefile
> process) under my config.
>
> > which contains the packaging scripts for debian.
>
> I did not look at debian packages yet, but I suppose this
> could be added on setup.cfg (see options on python distutils
> libs).
>
>
> Jérôme



     


------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Gramps-windows mailing list
Gramps-windows@...
https://lists.sourceforge.net/lists/listinfo/gramps-windows