[pygame] Requiring pygame in setup.py

2009-10-04 Thread Henrique Nakashima
Hello, I'm working on my setup.py for a Pygame library
(http://www.pygame.org/project-LibRPG-1293-2260.html) and trying to
declare Pygame 1.9.1 as a dependency. I wrote:

setup(...
  provides=['librpg'],
  requires=['pygame(>=1.9.1)'],
   ...
   )

It worked, but when I replaced 1.9.1 with 1.9.2, to check if it
actually depended on pygame, it worked as well. What is the right way
to ask easy_install to get pygame as a dep when my lib is installed?


Re: [pygame] Requiring pygame in setup.py

2009-10-05 Thread René Dudfield
hi,

that looks like it should work...

Perhaps try ['pygame>=1.9.1release'] or ['pygame>=1.9.1'] in there.
I'm not sure about the parentheses you had.

Also I'd recommend the Distribute fork of setuptools instead(I'm not
sure if it fixes that bug though):
http://pypi.python.org/pypi/distribute


cheers,


On Mon, Oct 5, 2009 at 1:33 AM, Henrique Nakashima
 wrote:
> Hello, I'm working on my setup.py for a Pygame library
> (http://www.pygame.org/project-LibRPG-1293-2260.html) and trying to
> declare Pygame 1.9.1 as a dependency. I wrote:
>
>    setup(...
>          provides=['librpg'],
>          requires=['pygame(>=1.9.1)'],
>           ...
>           )
>
> It worked, but when I replaced 1.9.1 with 1.9.2, to check if it
> actually depended on pygame, it worked as well. What is the right way
> to ask easy_install to get pygame as a dep when my lib is installed?
>


Re: [pygame] Requiring pygame in setup.py

2009-10-05 Thread Marius Gedminas
On Sun, Oct 04, 2009 at 09:33:47PM -0300, Henrique Nakashima wrote:
> Hello, I'm working on my setup.py for a Pygame library
> (http://www.pygame.org/project-LibRPG-1293-2260.html) and trying to
> declare Pygame 1.9.1 as a dependency. I wrote:
> 
> setup(...
>   provides=['librpg'],
>   requires=['pygame(>=1.9.1)'],

If you use setuptools, it's spelled install_requires.

If you use distutils, it doesn't enforce dependencies.

>...
>)
> 
> It worked, but when I replaced 1.9.1 with 1.9.2, to check if it
> actually depended on pygame, it worked as well. What is the right way
> to ask easy_install to get pygame as a dep when my lib is installed?

Marius Gedminas
-- 
To stay awake all night adds a day to your life.
-- Stilgar (Frank Herbert _Children_of_Dune_)


signature.asc
Description: Digital signature


Re: [pygame] Requiring pygame in setup.py

2009-10-05 Thread Henrique Nakashima
That explains it, I'm using distutils.

I'll take a look at setuptools. Thank you for the replies =)

On Mon, Oct 5, 2009 at 10:27, Marius Gedminas  wrote:
> On Sun, Oct 04, 2009 at 09:33:47PM -0300, Henrique Nakashima wrote:
>> Hello, I'm working on my setup.py for a Pygame library
>> (http://www.pygame.org/project-LibRPG-1293-2260.html) and trying to
>> declare Pygame 1.9.1 as a dependency. I wrote:
>>
>>     setup(...
>>           provides=['librpg'],
>>           requires=['pygame(>=1.9.1)'],
>
> If you use setuptools, it's spelled install_requires.
>
> If you use distutils, it doesn't enforce dependencies.
>
>>            ...
>>            )
>>
>> It worked, but when I replaced 1.9.1 with 1.9.2, to check if it
>> actually depended on pygame, it worked as well. What is the right way
>> to ask easy_install to get pygame as a dep when my lib is installed?
>
> Marius Gedminas
> --
> To stay awake all night adds a day to your life.
>                -- Stilgar (Frank Herbert _Children_of_Dune_)
>
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.9 (GNU/Linux)
>
> iD8DBQFKyfQtkVdEXeem148RAlV6AKCLKF1X9TQkwNueFGK1OUPNeMoVDQCgi2eN
> 4jCorwV6i0enTh1PQtO9P+A=
> =b/z8
> -END PGP SIGNATURE-
>
>