Skip to content

Commit

Permalink
[Mod] make setup.py more simple
Browse files Browse the repository at this point in the history
  • Loading branch information
nanoric committed Jul 5, 2019
1 parent 9b50343 commit e3ffe91
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,15 +121,8 @@ def gather_autocxxpy_generated_files(root: str):
ext_modules = [vnctptd, vnctpmd]


def get_env(key: str, default=None):
try:
return os.environ[key]
except KeyError:
return default


def check_extension_build_flag(key: str, module: Extension):
value = get_env(key, None)
value = os.environ.get(key, None)
if value is not None:
global ext_modules
if value == '1':
Expand Down

0 comments on commit e3ffe91

Please sign in to comment.