Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gremlin-python: enable opt-out for some pkg reqs #1733

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions gremlin-python/src/main/python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,22 @@
version = __version__.version

install_requires = [
'nest_asyncio',
'aiohttp>=3.8.0,<=3.8.1',
'aenum>=1.4.5,<4.0.0',
'isodate>=0.6.0,<1.0.0'
]

# Users who plan to use a custom transport (instead of AiohttpTransport) can
# opt out of installing the aiohttp and nest_asyncio packages by setting the
# environment variable GREMLINPYTHON_NO_AIOHTTP, and installing from source:
# export GREMLINPYTHON_NO_AIOHTTP=1
# pip install --no-binary gremlinpython gremlinpython
opt_out_aiohttp = bool(os.getenv("GREMLINPYTHON_NO_AIOHTTP"))
if not opt_out_aiohttp:
install_requires += [
'nest_asyncio',
'aiohttp>=3.8.0,<=3.8.1'
]

if sys.version_info < (3, 5):
install_requires += ['pyparsing>=2.4.7,<3.0.0']

Expand Down