Skip to content

Commit 4964100

Browse files
committed
Use the scm fallback mechanism to set pyarrow's version in the python source distribution
1 parent 9067829 commit 4964100

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

python/setup.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -525,12 +525,8 @@ def _move_shared_libs_unix(build_prefix, build_lib, lib_name):
525525
default_version = '5.0.0-SNAPSHOT'
526526
if (not os.path.exists('../.git') and
527527
not os.environ.get('SETUPTOOLS_SCM_PRETEND_VERSION')):
528-
if os.path.exists('PKG-INFO'):
529-
# We're probably in a Python sdist, setuptools_scm will handle fine
530-
pass
531-
else:
532-
os.environ['SETUPTOOLS_SCM_PRETEND_VERSION'] = \
533-
default_version.replace('-SNAPSHOT', 'a0')
528+
os.environ['SETUPTOOLS_SCM_PRETEND_VERSION'] = \
529+
default_version.replace('-SNAPSHOT', 'a0')
534530

535531

536532
# See https://github.com/pypa/setuptools_scm#configuration-parameters

0 commit comments

Comments
 (0)