python-poetry / poetry

Python packaging and dependency management made easy
https://python-poetry.org
MIT License
31.62k stars 2.27k forks source link

setuptools not installed when it is a transitive dependency on Python 3.12 #9630

Closed cbornet closed 2 months ago

cbornet commented 2 months ago

Description

setuptools is not installed when it is a transitive dependency on Python 3.12.

For instance pytorch 2.4.0 pulls setuptools.

Steps to reproduce:

[tool.poetry.dependencies] python = "^3.12" torch = "2.4.0"

[build-system] requires = ["poetry-core"] build-backend = "poetry.core.masonry.api"


* run `poetry install`
```bash
poetry install
Creating virtualenv test-9uD2WYkC-py3.12 in /Users/christophebornet/Library/Caches/pypoetry/virtualenvs
Updating dependencies
Resolving dependencies... (3.7s)

Package operations: 9 installs, 0 updates, 0 removals

  - Installing markupsafe (2.1.5)
  - Installing mpmath (1.3.0)
  - Installing filelock (3.15.4)
  - Installing fsspec (2024.6.1)
  - Installing jinja2 (3.1.4)
  - Installing networkx (3.3)
  - Installing sympy (1.13.2)
  - Installing typing-extensions (4.12.2)
  - Installing torch (2.4.0)

Writing lock file

Installing the current project: test (0.1.0)

We see that setuptools was not installed by poetry.

Workarounds

Explicitly pulling setuptools in pyproject:

setuptools = "^72.2.0"

Poetry Installation Method

pip

Operating System

Seen on MacOS and Ubuntu

Poetry Version

Poetry (version 1.8.3)

Poetry Configuration

cache-dir = "/Users/christophebornet/Library/Caches/pypoetry"
experimental.system-git-client = false
installer.max-workers = null
installer.modern-installation = true
installer.no-binary = null
installer.parallel = true
keyring.enabled = true
solver.lazy-wheel = true
virtualenvs.create = true
virtualenvs.in-project = null
virtualenvs.options.always-copy = false
virtualenvs.options.no-pip = false
virtualenvs.options.no-setuptools = false
virtualenvs.options.system-site-packages = false
virtualenvs.path = "{cache-dir}/virtualenvs"  # /Users/christophebornet/Library/Caches/pypoetry/virtualenvs
virtualenvs.prefer-active-python = false
virtualenvs.prompt = "{project_name}-py{python_version}"
warnings.export = true

Python Sysconfig

No response

Example pyproject.toml

No response

Poetry Runtime Logs

poetry -vvv install
Loading configuration file /Users/christophebornet/Library/Application Support/pypoetry/config.toml
Creating virtualenv test-iVHvSWOv-py3.12 in /Users/christophebornet/Library/Caches/pypoetry/virtualenvs
[virtualenv] find interpreter for spec PythonSpec(path=/Users/christophebornet/.pyenv/versions/3.12.4/bin/python3.12)
[virtualenv] filesystem is not case-sensitive
[virtualenv] proposed PythonInfo(spec=CPython3.12.4.final.0-64, exe=/Users/christophebornet/.pyenv/versions/3.12.4/bin/python3.12, platform=darwin, version='3.12.4 (main, Aug 15 2024, 11:11:11) [Clang 13.1.6 (clang-1316.0.21.2.5)]', encoding_fs_io=utf-8-utf-8)
[virtualenv] accepted PythonInfo(spec=CPython3.12.4.final.0-64, exe=/Users/christophebornet/.pyenv/versions/3.12.4/bin/python3.12, platform=darwin, version='3.12.4 (main, Aug 15 2024, 11:11:11) [Clang 13.1.6 (clang-1316.0.21.2.5)]', encoding_fs_io=utf-8-utf-8)
[virtualenv] create virtual environment via CPython3Posix(dest=/Users/christophebornet/Library/Caches/pypoetry/virtualenvs/test-iVHvSWOv-py3.12, clear=False, no_vcs_ignore=False, global=False)
[virtualenv] create folder /Users/christophebornet/Library/Caches/pypoetry/virtualenvs/test-iVHvSWOv-py3.12/bin
[virtualenv] create folder /Users/christophebornet/Library/Caches/pypoetry/virtualenvs/test-iVHvSWOv-py3.12/lib/python3.12/site-packages
[virtualenv] write /Users/christophebornet/Library/Caches/pypoetry/virtualenvs/test-iVHvSWOv-py3.12/pyvenv.cfg
[virtualenv]    home = /Users/christophebornet/.pyenv/versions/3.12.4/bin
[virtualenv]    implementation = CPython
[virtualenv]    version_info = 3.12.4.final.0
[virtualenv]    virtualenv = 20.26.3
[virtualenv]    include-system-site-packages = false
[virtualenv]    base-prefix = /Users/christophebornet/.pyenv/versions/3.12.4
[virtualenv]    base-exec-prefix = /Users/christophebornet/.pyenv/versions/3.12.4
[virtualenv]    base-executable = /Users/christophebornet/.pyenv/versions/3.12.4/bin/python3.12
[virtualenv] symlink /Users/christophebornet/.pyenv/versions/3.12.4/bin/python3.12 to /Users/christophebornet/Library/Caches/pypoetry/virtualenvs/test-iVHvSWOv-py3.12/bin/python
[virtualenv] create virtualenv import hook file /Users/christophebornet/Library/Caches/pypoetry/virtualenvs/test-iVHvSWOv-py3.12/lib/python3.12/site-packages/_virtualenv.pth
[virtualenv] create /Users/christophebornet/Library/Caches/pypoetry/virtualenvs/test-iVHvSWOv-py3.12/lib/python3.12/site-packages/_virtualenv.py
[virtualenv] ============================== target debug ==============================
[virtualenv] debug via /Users/christophebornet/Library/Caches/pypoetry/virtualenvs/test-iVHvSWOv-py3.12/bin/python /Users/christophebornet/.pyenv/versions/3.12.4/lib/python3.12/site-packages/virtualenv/create/debug.py
[virtualenv] {
[virtualenv]   "sys": {
[virtualenv]     "executable": "/Users/christophebornet/Library/Caches/pypoetry/virtualenvs/test-iVHvSWOv-py3.12/bin/python",
[virtualenv]     "_base_executable": "/Users/christophebornet/.pyenv/versions/3.12.4/bin/python3.12",
[virtualenv]     "prefix": "/Users/christophebornet/Library/Caches/pypoetry/virtualenvs/test-iVHvSWOv-py3.12",
[virtualenv]     "base_prefix": "/Users/christophebornet/.pyenv/versions/3.12.4",
[virtualenv]     "real_prefix": null,
[virtualenv]     "exec_prefix": "/Users/christophebornet/Library/Caches/pypoetry/virtualenvs/test-iVHvSWOv-py3.12",
[virtualenv]     "base_exec_prefix": "/Users/christophebornet/.pyenv/versions/3.12.4",
[virtualenv]     "path": [
[virtualenv]       "/Users/christophebornet/.pyenv/versions/3.12.4/lib/python312.zip",
[virtualenv]       "/Users/christophebornet/.pyenv/versions/3.12.4/lib/python3.12",
[virtualenv]       "/Users/christophebornet/.pyenv/versions/3.12.4/lib/python3.12/lib-dynload",
[virtualenv]       "/Users/christophebornet/Library/Caches/pypoetry/virtualenvs/test-iVHvSWOv-py3.12/lib/python3.12/site-packages"
[virtualenv]     ],
[virtualenv]     "meta_path": [
[virtualenv]       "<class '_virtualenv._Finder'>",
[virtualenv]       "<class '_frozen_importlib.BuiltinImporter'>",
[virtualenv]       "<class '_frozen_importlib.FrozenImporter'>",
[virtualenv]       "<class '_frozen_importlib_external.PathFinder'>"
[virtualenv]     ],
[virtualenv]     "fs_encoding": "utf-8",
[virtualenv]     "io_encoding": "utf-8"
[virtualenv]   },
[virtualenv]   "version": "3.12.4 (main, Aug 15 2024, 11:11:11) [Clang 13.1.6 (clang-1316.0.21.2.5)]",
[virtualenv]   "makefile_filename": "/Users/christophebornet/.pyenv/versions/3.12.4/lib/python3.12/config-3.12-darwin/Makefile",
[virtualenv]   "os": "<module 'os' (frozen)>",
[virtualenv]   "site": "<module 'site' (frozen)>",
[virtualenv]   "datetime": "<module 'datetime' from '/Users/christophebornet/.pyenv/versions/3.12.4/lib/python3.12/datetime.py'>",
[virtualenv]   "math": "<module 'math' from '/Users/christophebornet/.pyenv/versions/3.12.4/lib/python3.12/lib-dynload/math.cpython-312-darwin.so'>",
[virtualenv]   "json": "<module 'json' from '/Users/christophebornet/.pyenv/versions/3.12.4/lib/python3.12/json/__init__.py'>"
[virtualenv] }
[virtualenv] add seed packages via FromAppData(download=False, pip=bundle, via=copy, app_data_dir=/Users/christophebornet/Library/Application Support/virtualenv)
[virtualenv] install pip from wheel /Users/christophebornet/.pyenv/versions/3.12.4/lib/python3.12/site-packages/virtualenv/seed/wheels/embed/pip-24.1-py3-none-any.whl via CopyPipInstall
[filelock:filelock] Attempting to acquire lock 4374157776 on /Users/christophebornet/Library/Application Support/virtualenv/wheel/3.12/image/1/CopyPipInstall/pip-24.1-py3-none-any.lock
[filelock:filelock] Lock 4374157776 acquired on /Users/christophebornet/Library/Application Support/virtualenv/wheel/3.12/image/1/CopyPipInstall/pip-24.1-py3-none-any.lock
[filelock:filelock] Attempting to release lock 4374157776 on /Users/christophebornet/Library/Application Support/virtualenv/wheel/3.12/image/1/CopyPipInstall/pip-24.1-py3-none-any.lock
[filelock:filelock] Lock 4374157776 released on /Users/christophebornet/Library/Application Support/virtualenv/wheel/3.12/image/1/CopyPipInstall/pip-24.1-py3-none-any.lock
[virtualenv] copy /Users/christophebornet/Library/Application Support/virtualenv/wheel/3.12/image/1/CopyPipInstall/pip-24.1-py3-none-any/pip-24.1.virtualenv to /Users/christophebornet/Library/Caches/pypoetry/virtualenvs/test-iVHvSWOv-py3.12/lib/python3.12/site-packages/pip-24.1.virtualenv
[virtualenv] copy directory /Users/christophebornet/Library/Application Support/virtualenv/wheel/3.12/image/1/CopyPipInstall/pip-24.1-py3-none-any/pip-24.1.dist-info to /Users/christophebornet/Library/Caches/pypoetry/virtualenvs/test-iVHvSWOv-py3.12/lib/python3.12/site-packages/pip-24.1.dist-info
[virtualenv] copy directory /Users/christophebornet/Library/Application Support/virtualenv/wheel/3.12/image/1/CopyPipInstall/pip-24.1-py3-none-any/pip to /Users/christophebornet/Library/Caches/pypoetry/virtualenvs/test-iVHvSWOv-py3.12/lib/python3.12/site-packages/pip
[distlib:distlib.util] changing mode of /Users/christophebornet/Library/Caches/pypoetry/virtualenvs/test-iVHvSWOv-py3.12/bin/pip3 to 755
[distlib:distlib.util] changing mode of /Users/christophebornet/Library/Caches/pypoetry/virtualenvs/test-iVHvSWOv-py3.12/bin/pip3.12 to 755
[distlib:distlib.util] changing mode of /Users/christophebornet/Library/Caches/pypoetry/virtualenvs/test-iVHvSWOv-py3.12/bin/pip-3.12 to 755
[distlib:distlib.util] changing mode of /Users/christophebornet/Library/Caches/pypoetry/virtualenvs/test-iVHvSWOv-py3.12/bin/pip to 755
[virtualenv] generated console scripts pip3 pip3.12 pip-3.12 pip
[virtualenv] add activators for Bash, CShell, Fish, Nushell, PowerShell, Python
[virtualenv] write /Users/christophebornet/Library/Caches/pypoetry/virtualenvs/test-iVHvSWOv-py3.12/pyvenv.cfg
[virtualenv]    home = /Users/christophebornet/.pyenv/versions/3.12.4/bin
[virtualenv]    implementation = CPython
[virtualenv]    version_info = 3.12.4.final.0
[virtualenv]    virtualenv = 20.26.3
[virtualenv]    include-system-site-packages = false
[virtualenv]    base-prefix = /Users/christophebornet/.pyenv/versions/3.12.4
[virtualenv]    base-exec-prefix = /Users/christophebornet/.pyenv/versions/3.12.4
[virtualenv]    base-executable = /Users/christophebornet/.pyenv/versions/3.12.4/bin/python3.12
[virtualenv]    prompt = test-py3.12
Using virtualenv: /Users/christophebornet/Library/Caches/pypoetry/virtualenvs/test-iVHvSWOv-py3.12
Updating dependencies
Resolving dependencies...
   1: fact: test is 0.1.0
   1: derived: test
   1: fact: test depends on torch (2.4.0)
   1: selecting test (0.1.0)
   1: derived: torch (==2.4.0)
Checking if keyring is available
[keyring:keyring.backend] Loading KWallet
[keyring:keyring.backend] Loading SecretService
[keyring:keyring.backend] Loading Windows
[keyring:keyring.backend] Loading chainer
[keyring:keyring.backend] Loading libsecret
[keyring:keyring.backend] Loading macOS
Using keyring backend 'macOS Keyring'
Creating new session for pypi.org
Source (PyPI): 1 packages found for torch 2.4.0
   1: fact: torch (2.4.0) depends on filelock (*)
   1: fact: torch (2.4.0) depends on typing-extensions (>=4.8.0)
   1: fact: torch (2.4.0) depends on sympy (*)
   1: fact: torch (2.4.0) depends on networkx (*)
   1: fact: torch (2.4.0) depends on jinja2 (*)
   1: fact: torch (2.4.0) depends on fsspec (*)
   1: fact: torch (2.4.0) depends on nvidia-cuda-nvrtc-cu12 (12.1.105)
   1: fact: torch (2.4.0) depends on nvidia-cuda-runtime-cu12 (12.1.105)
   1: fact: torch (2.4.0) depends on nvidia-cuda-cupti-cu12 (12.1.105)
   1: fact: torch (2.4.0) depends on nvidia-cudnn-cu12 (9.1.0.70)
   1: fact: torch (2.4.0) depends on nvidia-cublas-cu12 (12.1.3.1)
   1: fact: torch (2.4.0) depends on nvidia-cufft-cu12 (11.0.2.54)
   1: fact: torch (2.4.0) depends on nvidia-curand-cu12 (10.3.2.106)
   1: fact: torch (2.4.0) depends on nvidia-cusolver-cu12 (11.4.5.107)
   1: fact: torch (2.4.0) depends on nvidia-cusparse-cu12 (12.1.0.106)
   1: fact: torch (2.4.0) depends on nvidia-nccl-cu12 (2.20.5)
   1: fact: torch (2.4.0) depends on nvidia-nvtx-cu12 (12.1.105)
   1: fact: torch (2.4.0) depends on triton (3.0.0)
   1: selecting torch (2.4.0)
   1: derived: triton (==3.0.0)
   1: derived: nvidia-nvtx-cu12 (==12.1.105)
   1: derived: nvidia-nccl-cu12 (==2.20.5)
   1: derived: nvidia-cusparse-cu12 (==12.1.0.106)
   1: derived: nvidia-cusolver-cu12 (==11.4.5.107)
   1: derived: nvidia-curand-cu12 (==10.3.2.106)
   1: derived: nvidia-cufft-cu12 (==11.0.2.54)
   1: derived: nvidia-cublas-cu12 (==12.1.3.1)
   1: derived: nvidia-cudnn-cu12 (==9.1.0.70)
   1: derived: nvidia-cuda-cupti-cu12 (==12.1.105)
   1: derived: nvidia-cuda-runtime-cu12 (==12.1.105)
   1: derived: nvidia-cuda-nvrtc-cu12 (==12.1.105)
   1: derived: fsspec
   1: derived: jinja2
   1: derived: networkx
   1: derived: sympy
   1: derived: typing-extensions (>=4.8.0)
   1: derived: filelock
Source (PyPI): 1 packages found for triton 3.0.0
Source (PyPI): 1 packages found for nvidia-nvtx-cu12 12.1.105
Source (PyPI): 1 packages found for nvidia-nccl-cu12 2.20.5
Source (PyPI): 1 packages found for nvidia-cusparse-cu12 12.1.0.106
Source (PyPI): 1 packages found for nvidia-cusolver-cu12 11.4.5.107
Source (PyPI): 1 packages found for nvidia-curand-cu12 10.3.2.106
Source (PyPI): 1 packages found for nvidia-cufft-cu12 11.0.2.54
Source (PyPI): 1 packages found for nvidia-cublas-cu12 12.1.3.1
Source (PyPI): 1 packages found for nvidia-cudnn-cu12 9.1.0.70
Source (PyPI): 1 packages found for nvidia-cuda-cupti-cu12 12.1.105
Source (PyPI): 1 packages found for nvidia-cuda-runtime-cu12 12.1.105
Source (PyPI): 1 packages found for nvidia-cuda-nvrtc-cu12 12.1.105
Source (PyPI): 80 packages found for fsspec *
Source (PyPI): 46 packages found for jinja2 *
Source (PyPI): 46 packages found for networkx *
Skipping url (https://files.pythonhosted.org/packages/f9/77/884c7b486953c044055ce4223f97b1d6c19674a6698e04cbb4a610337041/sympy-0.7.2-py3.2.tar.gz) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/16/4d/d2ff189120289b8be43145d0f00c2ebcba46c8aac0ab68eef2d6e7dc2753/sympy-0.7.2-py3.3.tar.gz) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/9c/10/31fba5f4a67454bc21495a953ceafb117998dddb04fdd46c7d566b94e1e3/sympy-0.7.3-py2.5.tar.gz) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/1a/6c/e7f64d76415e719a6439fc2d3626b3aab176065be7f329f6223fad17bb72/sympy-0.7.3-py2.6.tar.gz) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/22/51/db47b12df63ef13e630ec0365269fcb02eb2724ac0a418ca31aedb7e5940/sympy-0.7.3-py2.7.tar.gz) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/e6/3f/83229a9c84253096fbeb5aba728db0dea9c65bdd453e606c4feecd005bb3/sympy-0.7.3-py3.2.tar.gz) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/31/4c/eb5340171866063924799cb7354e4d046c4634170eb2a337191b68227557/sympy-0.7.3-py3.3.tar.gz) due to invalid version (None)
Source (PyPI): 41 packages found for sympy *
Source (PyPI): 7 packages found for typing-extensions >=4.8.0
Source (PyPI): 70 packages found for filelock *
   1: selecting fsspec (2024.6.1)
   1: selecting filelock (3.15.4)
   1: fact: jinja2 (3.1.4) depends on MarkupSafe (>=2.0)
   1: selecting jinja2 (3.1.4)
   1: derived: MarkupSafe (>=2.0)
Source (PyPI): 8 packages found for markupsafe >=2.0
   1: selecting networkx (3.3)
   1: fact: sympy (1.13.2) depends on mpmath (>=1.1.0,<1.4)
   1: selecting sympy (1.13.2)
   1: derived: mpmath (>=1.1.0,<1.4)
Skipping url (https://files.pythonhosted.org/packages/66/ab/bba2d8854ff49ed60be91073553e8aa22aa3ee3d5f767275d153cabe806a/mpmath-0.4.src.zip) due to invalid version (None)
Source (PyPI): 3 packages found for mpmath >=1.1.0,<1.4
   1: selecting markupsafe (2.1.5)
   1: selecting typing-extensions (4.12.2)
   1: selecting mpmath (1.3.0)
   1: fact: triton (3.0.0) depends on filelock (*)
   1: selecting triton (3.0.0)
   1: selecting nvidia-nvtx-cu12 (12.1.105)
   1: selecting nvidia-nccl-cu12 (2.20.5)
   1: fact: nvidia-cusparse-cu12 (12.1.0.106) depends on nvidia-nvjitlink-cu12 (*)
   1: selecting nvidia-cusparse-cu12 (12.1.0.106)
   1: derived: nvidia-nvjitlink-cu12
Source (PyPI): 14 packages found for nvidia-nvjitlink-cu12 *
   1: selecting nvidia-nvjitlink-cu12 (12.6.20)
   1: fact: nvidia-cusolver-cu12 (11.4.5.107) depends on nvidia-cublas-cu12 (*)
   1: fact: nvidia-cusolver-cu12 (11.4.5.107) depends on nvidia-nvjitlink-cu12 (*)
   1: fact: nvidia-cusolver-cu12 (11.4.5.107) depends on nvidia-cusparse-cu12 (*)
   1: selecting nvidia-cusolver-cu12 (11.4.5.107)
   1: selecting nvidia-curand-cu12 (10.3.2.106)
   1: selecting nvidia-cufft-cu12 (11.0.2.54)
   1: selecting nvidia-cublas-cu12 (12.1.3.1)
   1: fact: nvidia-cudnn-cu12 (9.1.0.70) depends on nvidia-cublas-cu12 (*)
   1: selecting nvidia-cudnn-cu12 (9.1.0.70)
   1: selecting nvidia-cuda-cupti-cu12 (12.1.105)
   1: selecting nvidia-cuda-runtime-cu12 (12.1.105)
   1: selecting nvidia-cuda-nvrtc-cu12 (12.1.105)
   1: Version solving took 0.108 seconds.
   1: Tried 1 solutions.

Finding the necessary packages for the current system
Source (PyPI): 1 packages found for torch 2.4.0
Source (PyPI): 1 packages found for fsspec *
Source (PyPI): 1 packages found for jinja2 *
Source (PyPI): 1 packages found for networkx *
Source (PyPI): 1 packages found for sympy *
Source (PyPI): 1 packages found for typing-extensions >=4.8.0
Source (PyPI): 1 packages found for filelock *
Source (PyPI): 1 packages found for markupsafe >=2.0
Source (PyPI): 1 packages found for mpmath >=1.1.0,<1.4

Package operations: 9 installs, 0 updates, 0 removals

  - Installing markupsafe (2.1.5): Pending...
  - Installing mpmath (1.3.0): Pending...
Skipping wheel MarkupSafe-2.1.5-cp310-cp310-macosx_10_9_universal2.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.5-cp310-cp310-macosx_10_9_x86_64.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.5-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.5-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.5-cp310-cp310-musllinux_1_1_aarch64.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.5-cp310-cp310-musllinux_1_1_i686.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.5-cp310-cp310-musllinux_1_1_x86_64.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.5-cp310-cp310-win32.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.5-cp310-cp310-win_amd64.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.5-cp311-cp311-macosx_10_9_universal2.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.5-cp311-cp311-macosx_10_9_x86_64.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.5-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.5-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.5-cp311-cp311-musllinux_1_1_aarch64.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.5-cp311-cp311-musllinux_1_1_i686.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.5-cp311-cp311-musllinux_1_1_x86_64.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.5-cp311-cp311-win32.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.5-cp311-cp311-win_amd64.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.5-cp312-cp312-macosx_10_9_x86_64.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.5-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.5-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.5-cp312-cp312-musllinux_1_1_aarch64.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.5-cp312-cp312-musllinux_1_1_i686.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.5-cp312-cp312-musllinux_1_1_x86_64.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.5-cp312-cp312-win32.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.5-cp312-cp312-win_amd64.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.5-cp37-cp37m-macosx_10_9_x86_64.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.5-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.5-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.5-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.5-cp37-cp37m-musllinux_1_1_aarch64.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.5-cp37-cp37m-musllinux_1_1_i686.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.5-cp37-cp37m-musllinux_1_1_x86_64.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.5-cp37-cp37m-win32.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.5-cp37-cp37m-win_amd64.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.5-cp38-cp38-macosx_10_9_universal2.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.5-cp38-cp38-macosx_10_9_x86_64.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.5-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.5-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.5-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.5-cp38-cp38-musllinux_1_1_aarch64.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.5-cp38-cp38-musllinux_1_1_i686.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.5-cp38-cp38-musllinux_1_1_x86_64.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.5-cp38-cp38-win32.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.5-cp38-cp38-win_amd64.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.5-cp39-cp39-macosx_10_9_universal2.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.5-cp39-cp39-macosx_10_9_x86_64.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.5-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.5-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.5-cp39-cp39-musllinux_1_1_aarch64.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.5-cp39-cp39-musllinux_1_1_i686.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.5-cp39-cp39-musllinux_1_1_x86_64.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.5-cp39-cp39-win32.whl as this is not supported by the current environment
  - Installing markupsafe (2.1.5): Installing...
  - Installing markupsafe (2.1.5)
  - Installing mpmath (1.3.0): Pending...
  - Installing mpmath (1.3.0): Installing...
  - Installing mpmath (1.3.0)
  - Installing filelock (3.15.4): Pending...
  - Installing filelock (3.15.4): Installing...
  - Installing filelock (3.15.4)
  - Installing fsspec (2024.6.1): Pending...
  - Installing fsspec (2024.6.1): Installing...
  - Installing fsspec (2024.6.1)
  - Installing jinja2 (3.1.4): Pending...
  - Installing jinja2 (3.1.4): Installing...
  - Installing jinja2 (3.1.4)
  - Installing networkx (3.3): Pending...
  - Installing networkx (3.3): Installing...
  - Installing networkx (3.3)
  - Installing sympy (1.13.2): Pending...
  - Installing sympy (1.13.2): Installing...
  - Installing sympy (1.13.2)
  - Installing typing-extensions (4.12.2): Pending...
  - Installing typing-extensions (4.12.2): Installing...
  - Installing typing-extensions (4.12.2)
  - Installing torch (2.4.0): Pending...
Skipping wheel torch-2.4.0-cp310-cp310-manylinux1_x86_64.whl as this is not supported by the current environment
Skipping wheel torch-2.4.0-cp310-cp310-manylinux2014_aarch64.whl as this is not supported by the current environment
Skipping wheel torch-2.4.0-cp310-cp310-win_amd64.whl as this is not supported by the current environment
Skipping wheel torch-2.4.0-cp310-none-macosx_11_0_arm64.whl as this is not supported by the current environment
Skipping wheel torch-2.4.0-cp311-cp311-manylinux1_x86_64.whl as this is not supported by the current environment
Skipping wheel torch-2.4.0-cp311-cp311-manylinux2014_aarch64.whl as this is not supported by the current environment
Skipping wheel torch-2.4.0-cp311-cp311-win_amd64.whl as this is not supported by the current environment
Skipping wheel torch-2.4.0-cp311-none-macosx_11_0_arm64.whl as this is not supported by the current environment
Skipping wheel torch-2.4.0-cp312-cp312-manylinux1_x86_64.whl as this is not supported by the current environment
Skipping wheel torch-2.4.0-cp312-cp312-manylinux2014_aarch64.whl as this is not supported by the current environment
Skipping wheel torch-2.4.0-cp312-cp312-win_amd64.whl as this is not supported by the current environment
Skipping wheel torch-2.4.0-cp38-cp38-manylinux1_x86_64.whl as this is not supported by the current environment
Skipping wheel torch-2.4.0-cp38-cp38-manylinux2014_aarch64.whl as this is not supported by the current environment
Skipping wheel torch-2.4.0-cp38-cp38-win_amd64.whl as this is not supported by the current environment
Skipping wheel torch-2.4.0-cp38-none-macosx_11_0_arm64.whl as this is not supported by the current environment
Skipping wheel torch-2.4.0-cp39-cp39-manylinux1_x86_64.whl as this is not supported by the current environment
Skipping wheel torch-2.4.0-cp39-cp39-manylinux2014_aarch64.whl as this is not supported by the current environment
Skipping wheel torch-2.4.0-cp39-cp39-win_amd64.whl as this is not supported by the current environment
Skipping wheel torch-2.4.0-cp39-none-macosx_11_0_arm64.whl as this is not supported by the current environment
  - Installing torch (2.4.0): Installing...
  - Installing torch (2.4.0)

Writing lock file

Installing the current project: test (0.1.0)

Warning: The current project could not be installed: [Errno 2] No such file or directory: '/Users/christophebornet/README.md'
If you do not want to install the current project use --no-root.
If you want to use Poetry only for dependency management but not for packaging, you can disable package mode by setting package-mode = false in your pyproject.toml file.
In a future version of Poetry this warning will become an error!
dimbleby commented 2 months ago

setuptools is correctly not installed because it is not a dependency for pytorch

$ curl -s https://pypi.org/pypi/torch/2.4.0/json | jq '.info.requires_dist'
[
  "filelock",
  "typing-extensions>=4.8.0",
  "sympy",
  "networkx",
  "jinja2",
  "fsspec",
  "nvidia-cuda-nvrtc-cu12==12.1.105; platform_system == \"Linux\" and platform_machine == \"x86_64\"",
  "nvidia-cuda-runtime-cu12==12.1.105; platform_system == \"Linux\" and platform_machine == \"x86_64\"",
  "nvidia-cuda-cupti-cu12==12.1.105; platform_system == \"Linux\" and platform_machine == \"x86_64\"",
  "nvidia-cudnn-cu12==9.1.0.70; platform_system == \"Linux\" and platform_machine == \"x86_64\"",
  "nvidia-cublas-cu12==12.1.3.1; platform_system == \"Linux\" and platform_machine == \"x86_64\"",
  "nvidia-cufft-cu12==11.0.2.54; platform_system == \"Linux\" and platform_machine == \"x86_64\"",
  "nvidia-curand-cu12==10.3.2.106; platform_system == \"Linux\" and platform_machine == \"x86_64\"",
  "nvidia-cusolver-cu12==11.4.5.107; platform_system == \"Linux\" and platform_machine == \"x86_64\"",
  "nvidia-cusparse-cu12==12.1.0.106; platform_system == \"Linux\" and platform_machine == \"x86_64\"",
  "nvidia-nccl-cu12==2.20.5; platform_system == \"Linux\" and platform_machine == \"x86_64\"",
  "nvidia-nvtx-cu12==12.1.105; platform_system == \"Linux\" and platform_machine == \"x86_64\"",
  "triton==3.0.0; platform_system == \"Linux\" and platform_machine == \"x86_64\" and python_version < \"3.13\"",
  "opt-einsum>=3.3; extra == \"opt-einsum\"",
  "optree>=0.11.0; extra == \"optree\""
]

please close

dimbleby commented 2 months ago

https://github.com/pytorch/pytorch/pull/127921 was wrong, or anyway not compatible with poetry (and other tools that implement cross-platform locking)

you don't want

    if sys.version_info >= (3, 12, 0):
        install_requires.append("setuptools")

you do want

    install_requires.append('setuptools; python_version >= "3.12"')
cbornet commented 2 months ago

Thanks for the analysis. I'll propose a patch on pytorch.

github-actions[bot] commented 1 month ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.