Opened 4 years ago

Closed 3 years ago

#61816 closed defect (fixed)

py-dask @2020.12.0_0: needs build dependency py-setuptools_scm

Reported by: dgarnier (reinrag1a) Owned by: stromnov (Andrey Stromnov)
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: Cc: dgarnier (reinrag1a)
Port: py-dask

Description

Updating to py-dask 2020.12.0_0 is missing the build dependency of py-setuptools_scm. Of course, this is easily worked around by installing the dependency first, but it should be added to the Portfile.

info:build Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-dask/py37-dask/work/dask-2020.12.0" && /opt/local/Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7 setup.py --no-user-cfg build -j16 
:debug:build system:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-dask/py37-dask/work/dask-2020.12.0" && /opt/local/Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7 setup.py --no-user-cfg build -j16 
:info:build Traceback (most recent call last):
:info:build   File "setup.py", line 76, in <module>
:info:build     zip_safe=False,
:info:build   File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/setuptools/__init__.py", line 153, in setup
:info:build     return distutils.core.setup(**attrs)
:info:build   File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/core.py", line 108, in setup
:info:build     _setup_distribution = dist = klass(attrs)
:info:build   File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/setuptools/dist.py", line 424, in __init__
:info:build     k: v for k, v in attrs.items()
:info:build   File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 292, in __init__
:info:build     self.finalize_options()
:info:build   File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/setuptools/dist.py", line 694, in finalize_options
:info:build     for ep in sorted(eps, key=by_order):
:info:build   File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/setuptools/dist.py", line 693, in <lambda>
:info:build     eps = map(lambda e: e.load(), pkg_resources.iter_entry_points(group))
:info:build   File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2447, in load
:info:build     return self.resolve()
:info:build   File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2453, in resolve
:info:build     module = __import__(self.module_name, fromlist=['__name__'], level=0)
:info:build ModuleNotFoundError: No module named 'setuptools_scm'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-dask/py37-dask/work/dask-2020.12.0" && /opt/local/Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7 setup.py --no-user-cfg build -j16 
:info:build Exit code: 1
:error:build Failed to build py37-dask: command execution failed

Change History (4)

comment:1 Changed 4 years ago by dgarnier (reinrag1a)

Cc: dgarnier added

comment:2 Changed 4 years ago by jmroot (Joshua Root)

Cc: stromnov@… removed
Owner: set to stromnov
Status: newassigned

comment:3 Changed 4 years ago by stromnov (Andrey Stromnov)

This is very strange. The dask source files do not contain any references to the setuptools_scm package.

>>> grep -rnw '.' -e 'setuptools'

./docs/source/configuration.rst:420:        from setuptools import setup
./docs/source/setup/environment.rst:93:This function supports both standalone file and setuptools's ``.egg`` files
./setup.py:5:from setuptools import setup
./versioneer.py:84:that configures it. This overrides several distutils/setuptools commands to
./versioneer.py:390:        # Certain runtime workflows (setup.py install/develop in a setuptools
./versioneer.py:1477:    """Get the custom setuptools/distutils subclasses used by Versioneer."""
./versioneer.py:1495:    # we add "version" to both distutils and setuptools
./versioneer.py:1518:    # we override "build_py" in both distutils and setuptools
./versioneer.py:1523:    #  setuptools/bdist_wheel -> distutils/install ->..
./versioneer.py:1524:    #  setuptools/bdist_egg -> distutils/install_lib -> build_py
./versioneer.py:1525:    #  setuptools/install -> bdist_egg ->..
./versioneer.py:1526:    #  setuptools/develop -> ?
./versioneer.py:1529:    if "setuptools" in sys.modules:
./versioneer.py:1530:        from setuptools.command.build_py import build_py as _build_py
./versioneer.py:1576:    if "setuptools" in sys.modules:
./versioneer.py:1577:        from setuptools.command.sdist import sdist as _sdist

comment:4 Changed 3 years ago by reneeotten (Renee Otten)

Resolution: fixed
Status: assignedclosed

the current version is py-dask @2021.5.0 and builds for all systems on the buildbots, without the py-setuptools_scm dependency. Assuming that this issue is resolved; if it still does not work for you please respond/reopen this ticket.

Note: See TracTickets for help on using tickets.