Skip to content

Commit

Permalink
Merge pull request #44 from lsst/tickets/DM-40391
Browse files Browse the repository at this point in the history
DM-41391: Skip requirements.txt when installing from a conda environment
  • Loading branch information
mwittgen committed Aug 17, 2023
2 parents cf1727e + bb11750 commit 07d5061
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@
import os
import re

reqs = open('requirements.txt', 'r').read().strip().splitlines()
reqs = []

# skip using requirements.txt in a CONDA environment
if os.getenv('CONDA_PREFIX') is None:
reqs = open('requirements.txt', 'r').read().strip().splitlines()

if os.getenv('READTHEDOCS'):
reqs.remove('mpi4py')

Expand Down

0 comments on commit 07d5061

Please sign in to comment.