Skip to content

Commit 840d004

Browse files
committed
disable version lookup from .git
Installing libioc as git submodule caused trouble because the .git reference file pointed to the parents ../.git/modules/libioc path that does not exist in temporary directories. The version is looked up from the libioc/VERSION file anyway, so .git tag detection is not required
1 parent 5a01f3c commit 840d004

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

setup.py

+6
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@
3131
except ModuleNotFoundError:
3232
from pip.req import parse_requirements
3333

34+
try:
35+
import setuptools_scm.integration
36+
setuptools_scm.integration.find_files = lambda _: []
37+
except ImportError:
38+
pass
39+
3440

3541
def _read_requirements(
3642
filename: str="requirements.txt"

0 commit comments

Comments
 (0)