Skip to content

Commit

Permalink
fixed setup for standalone install
Browse files Browse the repository at this point in the history
  • Loading branch information
hariharan-devarajan committed Aug 10, 2023
1 parent 4620427 commit 90d3a0d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ def build_extension(self, ext: CMakeExtension) -> None:
if "DLIO_PROFILER_DIR" in os.environ:
install_prefix = os.environ['DLIO_PROFILER_DIR']
cmake_args += [f"-DCMAKE_INSTALL_PREFIX={install_prefix}"]
if "DLIO_PYTHON_SITE" in os.environ:
site = os.environ['DLIO_PYTHON_SITE']
cmake_args += [f"-DDLIO_PYTHON_SITE={site}"]
project_dir = Path.cwd()
dependency_file = open(f"{project_dir}/dependency/cpp.requirements.txt", 'r')
dependencies = dependency_file.readlines()
Expand Down

0 comments on commit 90d3a0d

Please sign in to comment.