From: Benny M. <ben...@gm...> - 2010-05-02 08:41:09
|
2010/4/26 Flavio Coelho <fcc...@gm...> > Hi, > > I use Gnuplot.py in some of my projects, and would like to thank Michael > for such a useful package. > > One of my projects, Liveplots[1], depends on Gnuplot.py, and uses > setuptools (easy_install)[2] as its main mode of distribution. It would be > very convenient for me, and possibly for other Gnuplot.py users, that is > could also be installed by means of the easy_install command. This is > important because other projects which want to declare Gnuplot.py as a > dependency can do so by listing it in their setup.py and have it be > installed automatically. > > To enable this, all that is required is to edit one line in the setup.py: > > where it reads "from distutils.core import setup" it should read: "from > setuptools import setup". After this, running "python setup.py sdist. > register upload", will add Gnuplot.py to Python Package Index and make it > easy_installable for users with setuptools installed. > > I should also point out, that this edit will not affect in any way how > Gnuplot.py is currently used and installed, just add a new way to install > it. > This seems easy, but is it the correct way forward? I did not follow all the dirt being thrown around with respect to building/installing python pacages. I know there is a lot of controversies. However, distutils remains supported in python core http://docs.python.org/distutils/index.html#distutils-index so it is a part of python 3. People still seem to use it and advocate it (eg http://diveintopython3.org/packaging.html ). So, why not use the core packages? If we go with setuptools, we could also take pip or distribute... Benny > cheers, > > -- > Flávio Codeço Coelho > > [1] http://code.google.com/p/liveplots/ > [2] http://pypi.python.org/pypi/setuptools > > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Gnuplot-py-users mailing list > Gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-py-users > > |