Changeset 287:67387621c61b


Ignore:
Timestamp:
Sep 5, 2013, 2:40:04 PM (7 years ago)
Author:
David Fraser <davidf@…>
Branch:
default
Message:

Added requirements.txt and use it from setup.py

Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • README.txt

    r193 r287  
    1111============
    1212
    13 The game requires pygame and pymunk.
     13The game requires pygame and pymunk. Requirements can be installed by
     14  pip install -e .
     15Or
     16  pip install -r requirements.txt
    1417
    1518It was developed using python 2.7, pymunk 4.0 and pygame 1.9.2. Older
  • setup.py

    r12 r287  
    1212except ImportError:
    1313    pass
     14
     15try:
     16    from pip.req import parse_requirements
     17    import os
     18    install_reqs = parse_requirements(os.path.join(os.path.dirname(__file__), 'requirements.txt'))
     19    reqs = [str(ir.req) for ir in install_reqs]
     20except ImportError:
     21    reqs = []
    1422
    1523# This should probably be pulled from constants.py
     
    6573
    6674    # Dependencies
    67     install_requires=[],
     75    install_requires=reqs,
    6876
    6977    # Files
Note: See TracChangeset for help on using the changeset viewer.