Mailing List Archive

python module
Hi

I want to write an ebuild, that installs a python module. After unpacking the
zipfile there is only one module module.py. What is the best way to install
that package. Is there an eclass that I can use?

Thanks in advance.
rene
--
gentoo-dev@gentoo.org mailing list
Re: python module [ In reply to ]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Rene Zbinden wrote:
> Hi
>
> I want to write an ebuild, that installs a python module. After unpacking the
> zipfile there is only one module module.py. What is the best way to install
> that package. Is there an eclass that I can use?
>

# The distutils eclass is designed to allow easier installation of
# distutils-based python modules and their incorporation into
# the Gentoo Linux system.


- --
Alin DOBRE
Romanian Lead Translator
Gentoo Documentation Project: http://www.gentoo.org/doc/en/
Gentoo.RO Community: http://www.gentoo.ro/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFC8cCEmG51ym6Hu9gRAk9gAKCRMqjuq6p/2Ol3IWe+PJ8w9QIwngCg7bqZ
EW6k7a7lCsDq+vABZDPR+dg=
=3coQ
-----END PGP SIGNATURE-----
--
gentoo-dev@gentoo.org mailing list
Re: python module [ In reply to ]
Yes in the meantime I found that eclass. The problem was, that there was no
setup.py file. I created my own and put it into the files directory.

Here is my ebuild:
http://bugs.gentoo.org/show_bug.cgi?id=101296

pyamazon is a Python wrapper for the Amazon web API.
Homepage: http://www.josephson.org/projects/pyamazon/

You can check it out if you want. Comments are welcome.

On Thursday 04 August 2005 09:15, Alin Dobre wrote:
> Rene Zbinden wrote:
> > Hi
> >
> > I want to write an ebuild, that installs a python module. After unpacking
> > the zipfile there is only one module module.py. What is the best way to
> > install that package. Is there an eclass that I can use?
>
> # The distutils eclass is designed to allow easier installation of
> # distutils-based python modules and their incorporation into
> # the Gentoo Linux system.
>
>
> --
> Alin DOBRE
> Romanian Lead Translator
> Gentoo Documentation Project: http://www.gentoo.org/doc/en/
> Gentoo.RO Community: http://www.gentoo.ro/

--
cheers,
reen
--
gentoo-dev@gentoo.org mailing list
Re: python module [ In reply to ]
Rene Zbinden wrote:
> Yes in the meantime I found that eclass. The problem was, that there was no
> setup.py file. I created my own and put it into the files directory.

If that works for you then I can't really see any reason why you
shouldn't do it, but I find it far easier and cleaner to simply not use
all the functions provided by distutils.

It should be much simpler to implement whatever you need in ebuild
functions, instead of doing them in setup.py and then calling that from
the ebuild.

I'm sure many python module ebuilds could show examples of this, but the
only one I can direct you to for certain is dev-python/visual-3.2.1.


--Colin
--
gentoo-dev@gentoo.org mailing list