Installation through requirements.txt

Issue #316 resolved
Arno Nym created an issue

Hey everyone,

I'm trying to get my project to install its dependencies (including PyGame) automatically by means of a requirements.txt. I've added a line to the requirements.txt for PyGame that looks like this:

-e hg+

but pip complains about missing dependencies during the installation:

Hunting dependencies...

SDL     : found 1.2.15

FONT    : found

IMAGE   : found

MIXER   : not found

PNG     : found

JPEG    : found

SCRAP   : found

PORTMIDI: not found

PORTTIME: not found

FREETYPE: found 2.5.2

Missing dependencies

Cleaning up...

The strange part about this is that I can manually run python install and it installs successfully.

Both pip and python are running inside a virtualenv.

Any idea what might be causing this issue?


Comments (5)

  1. Thomas Kluyver

    If it compiles from source, it needs to be able to find various libraries to link against. I don't know why it would work with install, but I guess there must be some difference in how pip invokes it.

    We do now have (beta) wheels up on PyPI. On Linux, you should be able to install pygame==1.9.2b8, and on Windows pygame==1.9.2b1. Mac wheels are still being worked out (see issue #300).

  2. Thomas Kluyver

    I'm marking this as resolved now that there are wheels on PyPI; it's not clear to me that there's anything to do about installing from source with requirements.txt.

  3. Log in to comment