setup.py + cython == chicken and the egg problem

Dan Stromberg drsalists at gmail.com
Thu Aug 18 00:05:09 EDT 2022


On Wed, Aug 17, 2022 at 3:05 PM Dan Stromberg <drsalists at gmail.com> wrote:

> I commented out those too lines, but I'm still getting errors.  They seem
>> to stem from:
>> $ "/home/dstromberg/venv/pyx-treap-testing/bin/python3",
>> ["/home/dstromberg/venv/pyx-treap-testing/bin/python3",
>> "/home/dstromberg/venv/pyx-treap-testing/lib/python3.9/site-packages/pip/__pip-runner__.py",
>> "install", "--ignore-installed", "--no-user", "--prefix",
>> "/tmp/pip-build-env-9_ivrsb6/overlay", "--no-warn-script-location",
>> "--no-binary", ":none:", "--only-binary", ":none:", "-i", "
>> https://test.pypi.org/simple/", "--", "setuptools >= 44.1.1", "wheel",
>> "Cython"]
>> "/home/dstromberg/venv/pyx-treap-testing/bin/python3"
>> "/home/dstromberg/venv/pyx-treap-testing/lib/python3.9/site-packages/pip/__pip-runner__.py"
>> "install" "--ignore-installed" "--no-user" "--prefix"
>> "/tmp/pip-build-env-9_ivrsb6/overlay" "--no-warn-script-location"
>> "--no-binary" ":none:" "--only-binary" ":none:" "-i" "
>> https://test.pypi.org/simple/" "--" "setuptools >= 44.1.1" "wheel"
>> "Cython"
>> Looking in indexes: https://test.pypi.org/simple/
>> ERROR: Could not find a version that satisfies the requirement
>> setuptools>=44.1.1 (from versions: none)
>> ERROR: No matching distribution found for setuptools>=44.1.1
>>
>> I copied that out of an strace.
>>
>> That's likely related to my pyproject.toml:
>> $ cat pyproject.toml
>> below cmd output started 2022 Wed Aug 17 01:57:09 PM PDT
>> [build-system]
>> requires = ["setuptools >= 44.1.1", "wheel", "Cython"]
>> build-backend = "setuptools.build_meta"
>>
>> Any other suggestions folks?
>>
>
> I don't know why, but if I delete the --ignore-installed option, I don't
> get the error:
> $ "/home/dstromberg/venv/pyx-treap-testing/bin/python3"
> "/home/dstromberg/venv/pyx-treap-testing/lib/python3.9/site-packages/pip/__pip-runner__.py"
> "install" "--ignore-installed" "--prefix"
> "/tmp/pip-build-env-9_ivrsb6/overlay" "-i" "https://test.pypi.org/simple/"
> "--" "setuptools>=44.1.1"
> below cmd output started 2022 Wed Aug 17 02:56:24 PM PDT
> Looking in indexes: https://test.pypi.org/simple/
> ERROR: Could not find a version that satisfies the requirement
> setuptools>=44.1.1 (from versions: none)
> ERROR: No matching distribution found for setuptools>=44.1.1
> (setuptools-investigation) above cmd output done    2022 Wed Aug 17
> 02:56:24 PM PDT
> dstromberg at tp-mini-c:~ x86_64-pc-linux-gnu 2995
>
> $ "/home/dstromberg/venv/pyx-treap-testing/bin/python3"
> "/home/dstromberg/venv/pyx-treap-testing/lib/python3.9/site-packages/pip/__pip-runner__.py"
> "install" "--prefix" "/tmp/pip-build-env-9_ivrsb6/overlay" "-i" "
> https://test.pypi.org/simple/" "--" "setuptools>=44.1.1"
> below cmd output started 2022 Wed Aug 17 02:56:35 PM PDT
> Looking in indexes: https://test.pypi.org/simple/
> Requirement already satisfied: setuptools>=44.1.1 in
> ./venv/pyx-treap-testing/lib/python3.9/site-packages (63.4.1)
>
> If I search for foo on pypi and testpypi, shouldn't I get foo before
> foo-bar and bar-foo?
>
> Because if I search for setuptools on pypi, I get setuptools as my first
> hit, but on testpypi, I don't see setuptools anywhere in the first page.
> That's perhaps significant if the search ordering is working as described
> above.
>
> ?
>

IOW, maybe testpypi doesn't have setuptools.  Indeed, it doesn't appear
to.  Publishing and installing from the real pypi seems to be working.

Thanks folks.


More information about the Python-list mailing list