broad-dentist-80514
03/27/2023, 2:08 PMpip install
the .whl into a given env, the process gets stuck resolving deps. It installs fine when I pass pip the --use-deprecated=legacy-resolver
flag.
My question: Is there a way to pass --use-deprecated=legacy-resolver
into pants
?
Because currently, pants (like pip) seems to just time out at Building requirements.pex with 1 requirement: ...@ file://
enough-analyst-54434
03/27/2023, 2:14 PMpip-2020-resolver
.broad-dentist-80514
03/27/2023, 2:16 PMMetadata-Version: 2.1
Name: ...
Version: 0.1.2
Summary: UNKNOWN
Home-page: UNKNOWN
License: UNKNOWN
Platform: UNKNOWN
Requires-Dist: black (~=22.0)
Requires-Dist: flake8 (<4.0,>=3.7.9)
Requires-Dist: ipython (<8.0,>=7.31.1)
Requires-Dist: isort (~=5.0)
Requires-Dist: jupyter (~=1.0)
Requires-Dist: jupyterlab (~=3.0)
Requires-Dist: kedro[pandas.csvdataset,pandas.exceldataset,pandas.parquetdataset] (~=0.18.3)
Requires-Dist: kedro-telemetry (~=0.2.0)
Requires-Dist: kedro-viz (~=4.0)
Requires-Dist: nbstripout (~=0.4)
Requires-Dist: pandera (~=0.13.3)
Requires-Dist: pytest-cov (~=3.0)
Requires-Dist: pytest-mock (<2.0,>=1.7.1)
Requires-Dist: pytest (~=6.2)
Requires-Dist: scikit-learn (~=1.0)
Provides-Extra: docs
Requires-Dist: docutils (<0.18.0) ; extra == 'docs'
Requires-Dist: sphinx (~=3.4.3) ; extra == 'docs'
Requires-Dist: sphinx-rtd-theme (==0.5.1) ; extra == 'docs'
Requires-Dist: nbsphinx (==0.8.1) ; extra == 'docs'
Requires-Dist: nbstripout (~=0.4) ; extra == 'docs'
Requires-Dist: myst-parser (~=0.17.2) ; extra == 'docs'
Requires-Dist: sphinx-autodoc-typehints (==1.11.1) ; extra == 'docs'
Requires-Dist: sphinx-copybutton (==0.3.1) ; extra == 'docs'
Requires-Dist: ipykernel (<7.0,>=5.3) ; extra == 'docs'
UNKNOWN
enough-analyst-54434
03/27/2023, 2:18 PMbroad-dentist-80514
03/27/2023, 2:19 PMspaceflights
https://docs.kedro.org/en/stable/tutorial/spaceflights_tutorial.htmlenough-analyst-54434
03/27/2023, 2:21 PMbroad-dentist-80514
03/27/2023, 2:23 PMenough-analyst-54434
03/27/2023, 2:24 PMbroad-dentist-80514
03/27/2023, 2:25 PMenough-analyst-54434
03/27/2023, 2:25 PMbroad-dentist-80514
03/27/2023, 2:26 PM==
pinned its dependencies and now it seems to work. 🙂enough-analyst-54434
03/27/2023, 2:57 PMblack~=22.0
flake8<4.0,>=3.7.9
ipython<8.0,>=7.31.1
isort~=5.0
jupyter~=1.0
jupyterlab~=3.0
kedro[pandas.csvdataset,pandas.exceldataset,pandas.parquetdataset]~=0.18.3
kedro-telemetry~=0.2.0
kedro-viz~=4.0
nbstripout~=0.4
pandera~=0.13.3
pytest-cov~=3.0
pytest-mock<2.0,>=1.7.1
pytest~=6.2
scikit-learn~=1.0
broad-dentist-80514
03/27/2023, 3:17 PM[python]
interpreter_constraints = ["CPython>=3.8"]
==3.9
nowenough-analyst-54434
03/27/2023, 3:23 PM--interpreter-constraint
"==3.{8,9,10}.*"
. Trying the full open ended range......
CPU dispatch :
Requested : 'max -xop -fma4'
Enabled : SSSE3 SSE41 POPCNT SSE42 AVX F16C FMA3 AVX2 AVX512F AVX512CD AVX512_KNL AVX512_KNM AVX512_SKX AVX512_CLX AVX512_CNL AVX512_ICL
Generated : none
INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /home/jsirois/.pex/pip_cache/.tmp/pip-install-t2_1tr0u/scipy_fc65dcc08b87435d8889b2b9724aa304/build/temp.linux-x86_64-3.9/ccompiler_opt_cache_clib.py
Building wheel for scipy (PEP 517): finished with status 'error'
ERROR: Failed building wheel for scipy
Failed to build scipy
ERROR: Could not build wheels for scipy which use PEP 517 and cannot be installed directly
Exception information:
Traceback (most recent call last):
File "/home/jsirois/.pex/venvs/c9ddfa173396da5869fe34ecc0594b87dd4565db/d43b4081fdded907dd84e965934e4d9159642320/lib/pypy3.9/site-packages/pip/_internal/cli/base_command.py", line 223, in _main
status = self.run(options, args)
File "/home/jsirois/.pex/venvs/c9ddfa173396da5869fe34ecc0594b87dd4565db/d43b4081fdded907dd84e965934e4d9159642320/lib/pypy3.9/site-packages/pip/_internal/cli/req_command.py", line 180, in wrapper
return func(self, options, args)
File "/home/jsirois/.pex/venvs/c9ddfa173396da5869fe34ecc0594b87dd4565db/d43b4081fdded907dd84e965934e4d9159642320/lib/pypy3.9/site-packages/pip/_internal/commands/install.py", line 362, in run
raise InstallationError(
pip._internal.exceptions.InstallationError: Could not build wheels for scipy which use PEP 517 and cannot be installed directly
...
So all the time was in building wheels from sdists for off-brand interpreters - PyPy 3.9 in my case. Perhaps you use a Mac M1 or something similar (Linux ARM) which tends not to have pre-built wheels published for it?broad-dentist-80514
03/27/2023, 4:38 PM