[ https://issues.apache.org/jira/browse/ARROW-379?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15758361#comment-15758361 ]
Leif Walsh commented on ARROW-379: ---------------------------------- Hmm, maybe not perfect. With the pyarrow-feedstock recipe and the commit hash on arrow's master branch right now, I get: {noformat} BUILD START (revised): pyarrow-0.1.post-np111py35_5 Package: pyarrow-0.1.post-np111py35_5 source tree in: /opt/conda/conda-bld/pyarrow-feedstock_1482044172134/work/arrow-cfb544de2efb260bc0737460e056a0d2a5295e6a + source /opt/conda/bin/activate /opt/conda/conda-bld/pyarrow-feedstock_1482044172134/_b_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_place + set -e + set -x + export ARROW_HOME=/opt/conda/conda-bld/pyarrow-feedstock_1482044172134/_b_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_place + ARROW_HOME=/opt/conda/conda-bld/pyarrow-feedstock_1482044172134/_b_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_place + export PARQUET_HOME=/opt/conda/conda-bld/pyarrow-feedstock_1482044172134/_b_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_place + PARQUET_HOME=/opt/conda/conda-bld/pyarrow-feedstock_1482044172134/_b_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_place + cd python + /opt/conda/conda-bld/pyarrow-feedstock_1482044172134/_b_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_place/bin/python setup.py build_ext --build-type=release --with-parquet install --single-version-externally-managed --record=record.txt Traceback (most recent call last): File "setup.py", line 279, in <module> test_suite="pyarrow.tests" File "/opt/conda/conda-bld/pyarrow-feedstock_1482044172134/_b_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_place/lib/python3.5/distutils/core.py", line 108, in setup _setup_distribution = dist = klass(attrs) File "/opt/conda/conda-bld/pyarrow-feedstock_1482044172134/_b_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_place/lib/python3.5/site-packages/setuptools/dist.py", line 319, in __init__ _Distribution.__init__(self, attrs) File "/opt/conda/conda-bld/pyarrow-feedstock_1482044172134/_b_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_place/lib/python3.5/distutils/dist.py", line 281, in __init__ self.finalize_options() File "/opt/conda/conda-bld/pyarrow-feedstock_1482044172134/_b_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_place/lib/python3.5/site-packages/setuptools/dist.py", line 386, in finalize_options ep.load()(self, ep.name, value) File "/opt/conda/conda-bld/pyarrow-feedstock_1482044172134/_b_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_place/lib/python3.5/site-packages/setuptools_scm/integration.py", line 19, in version_keyword dist.metadata.version = get_version(**value) File "/opt/conda/conda-bld/pyarrow-feedstock_1482044172134/_b_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_place/lib/python3.5/site-packages/setuptools_scm/__init__.py", line 117, in get_version parsed_version = _do_parse(root, parse) File "/opt/conda/conda-bld/pyarrow-feedstock_1482044172134/_b_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_place/lib/python3.5/site-packages/setuptools_scm/__init__.py", line 95, in _do_parse "use git+https://github.com/user/proj.git#egg=proj" % root) LookupError: setuptools-scm was unable to detect version for '/opt/conda/conda-bld/pyarrow-feedstock_1482044172134/work/arrow-cfb544de2efb260bc0737460e056a0d2a5295e6a'. Make sure you're either building from a fully intact git repository or PyPI tarballs. Most other sources (such as GitHub's tarballs, a git checkout without the .git folder) don't contain the necessary metadata and will not work. For example, if you're using pip, instead of https://github.com/user/proj/archive/master.zip use git+https://github.com/user/proj.git#egg=proj Command failed: /bin/bash -x -e /opt/conda/conda-bld/pyarrow-feedstock_1482044172134/work/arrow-cfb544de2efb260bc0737460e056a0d2a5295e6a/conda_build.sh {noformat} > Python: Use setuptools_scm/setuptools_scm_git_archive to provide the version > number > ----------------------------------------------------------------------------------- > > Key: ARROW-379 > URL: https://issues.apache.org/jira/browse/ARROW-379 > Project: Apache Arrow > Issue Type: Improvement > Components: Python > Reporter: Uwe L. Korn > Assignee: Uwe L. Korn > Labels: newbie > > Instead of relying on a hardcoded string, it would be better to infer the > version number from the SCM. This would get rid of the custom code in the > release script (which I'm not sure if it is actually working) and also > provide better (i.e. increasing) dev-versions. -- This message was sent by Atlassian JIRA (v6.3.4#6332)