Skip to content

Commit dafd8e7

Browse files
committed
Trying to find an environment variable that is available
1 parent 7197eea commit dafd8e7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

setup.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@
2727
is_rtd = os.environ["READTHEDOCS"]
2828
if "APPVEYOR" in os.environ:
2929
is_appveyor = os.environ["APPVEYOR"]
30-
if "TF_BUILD" in os.environ:
31-
is_azure = os.environ["TF_BUILD"]
30+
if "System.TeamProjectId" in os.environ:
31+
is_azure = True
32+
print("System.TeamProjectId" in os.environ)
33+
print("TF_BUILD" in os.environ)
3234

3335
# Only include the installation dependencies if we are not running on RTD or AppVeyor
3436
if not is_rtd and not is_appveyor and not is_azure:

0 commit comments

Comments
 (0)