Skip to content

Commit

Permalink
[Setup] Ignore git requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
Herklos committed Mar 4, 2021
1 parent c065520 commit 4a9f215
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ def cythonize(*args, **kwargs):
from Cython.Build import cythonize
return cythonize(*args, **kwargs)


def build_ext(*args, **kwargs):
from Cython.Distutils import build_ext
return build_ext(*args, **kwargs)
Expand Down Expand Up @@ -66,7 +67,12 @@ def build_ext(*args, **kwargs):
with open('README.md', encoding='utf-8') as f:
DESCRIPTION = f.read()

REQUIRED = open('requirements.txt').readlines()

def ignore_git_requirements(requirements):
return [requirement for requirement in requirements if "git+" not in requirement]


REQUIRED = ignore_git_requirements(open('requirements.txt').readlines())
REQUIRES_PYTHON = '>=3.8'
CYTHON_DEBUG = False if not os.getenv('CYTHON_DEBUG') else os.getenv('CYTHON_DEBUG')

Expand Down

0 comments on commit 4a9f215

Please sign in to comment.