Skip to content

Commit

Permalink
add one more path
Browse files Browse the repository at this point in the history
  • Loading branch information
tlambert03 committed Dec 8, 2024
1 parent 6c9bab0 commit d162dd8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@
from setuptools import setup
from setuptools.extension import Extension

CONDA_PREFIX = os.environ.get("CONDA_PREFIX")
if not CONDA_PREFIX:
raise ValueError("CONDA_PREFIX not set, did you active a conda environment?")

# gurobi seems to be putting its libraries in the top of the conda env
os.environ["PATH"] += os.pathsep + CONDA_PREFIX
print("CONDA_PREFIX:", CONDA_PREFIX)
print("PATH:", os.environ["PATH"])

# enable test coverage tracing if CYTHON_TRACE is set to a non-zero value
CYTHON_TRACE = int(os.getenv("CYTHON_TRACE") in ("1", "True"))

Expand Down

0 comments on commit d162dd8

Please sign in to comment.