Skip to content

Commit

Permalink
fix: non-isolated build fails when versioneer is installed (#175)
Browse files Browse the repository at this point in the history
fix #171
  • Loading branch information
mayeut authored Aug 1, 2021
1 parent e6df5a9 commit 31737a2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@

# Add current folder to path
# This is required to import versioneer in an isolated pip build
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
# Prepending allows not to break on a non-isolated build when versioneer
# is already installed (c.f. https://github.com/scikit-build/cmake-python-distributions/issues/171)
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))

import versioneer # noqa: E402

Expand Down

0 comments on commit 31737a2

Please sign in to comment.