Skip to content

Commit

Permalink
Workaround a pip issue when with pyproject.toml & editable install
Browse files Browse the repository at this point in the history
  • Loading branch information
Luthaf committed Jul 21, 2021
1 parent 0edfd2c commit 377e85c
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 @@ -2,10 +2,13 @@
from wheel.bdist_wheel import bdist_wheel
from skbuild import setup

import site
import sys
import os
import re

# workaround https://github.com/pypa/pip/issues/7953
site.ENABLE_USER_SITE = "--user" in sys.argv[1:]

# Read the version from chemfiles/__init__.py without importing chemfiles
__version__ = re.search(
Expand Down

0 comments on commit 377e85c

Please sign in to comment.