Changeset 693:a06689439eb0


Ignore:
Timestamp:
09/10/19 20:00:01 (2 years ago)
Author:
Stefano Rivera <stefano@…>
Branch:
default
Phase:
public
Message:

Don't use pip to parse requirements.txt. This was not a public API

File:
1 edited

Legend:

Unmodified
Added
Removed
  • setup.py

    r692 r693  
    1313    pass
    1414
    15 try:
    16     from pip.req import parse_requirements
    17     import os
    18     game_dir = os.path.dirname(__file__)
    19     req_file = os.path.join(game_dir, 'requirements.txt')
    20     install_reqs = parse_requirements(req_file)
    21     reqs = [str(ir.req) for ir in install_reqs]
    22 except ImportError:
    23     reqs = []
     15reqs = []
     16with open('requirements.txt') as f:
     17    for line in f:
     18        reqs.append(line.strip())
    2419
    2520# This should probably be pulled from constants.py
Note: See TracChangeset for help on using the changeset viewer.