<p>pip essaie d'analyser les URL PEP 508 dans le [système de construction] de pyproject.toml requiert comme chemin de fichier</p>

Créé le 13 avr. 2019  ·  5Commentaires  ·  Source: pypa/pip

Environnement

  • version pip: tox ne me dit pas: craintif:
  • Version Python: 3.7
  • Système d'exploitation: Fedora GNU / Linux

La description
Voici ce qui se passe lorsque vous essayez de spécifier "wobblui @ https://github.com/wobblui/wobblui/archive/master.zip ":

  Requirement 'wobblui @ https://github.com/wobblui/wobblui/archive/master.zip' looks like a filename, but the file does not exist
  Processing ./wobblui @ https:/github.com/wobblui/wobblui/archive/master.zip
  Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: '/home/jonas/Develop/myproj/wobblui @ https:/github.com/wobblui/wobblui/archive/master.zip'

Comportement attendu
Que ça marche, parce que ça marche aussi en seutp_requires et c'est le remplacement recommandé, non?

Comment reproduire
Utilisez ce pyproject.toml:

[build-system]
requires = ["setuptools", "wheel", "wobblui @ https://github.com/wobblui/wobblui/archive/master.zip"]
build-backend = "setuptools.build_meta"

Sortir

  Requirement 'wobblui @ https://github.com/wobblui/wobblui/archive/master.zip' looks like a filename, but the file does not exist
  Processing ./wobblui @ https:/github.com/wobblui/wobblui/archive/master.zip
  Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: '/home/jonas/Develop/myproj/wobblui @ https:/github.com/wobblui/wobblui/archive/master.zip'
duplicate auto-locked awaiting response bug

Commentaire le plus utile

Pour ce que ça vaut, pip du PR associé à ce problème (# 6203) a pu installer le pyproject.toml fourni ici sans problème.

Tous les 5 commentaires

Je crois que c'est un double de # 6202?

Hmm que l'on semble mentionner requirements.txt et je ne saurais pas si utilise en interne le même mécanisme. S'il utilise le même, alors c'est probablement un doublon: +1:

Je suis à peu près sûr qu'il utilise le même mécanisme, mais je suppose que cela ne peut pas faire de mal de garder cela ouvert jusqu'à ce que nous soyons sûrs que c'est corrigé.

Pour ce que ça vaut, pip du PR associé à ce problème (# 6203) a pu installer le pyproject.toml fourni ici sans problème.

6203 a été fusionné et j'ai pu confirmer le correctif contre master:


fixed.sh

#!/bin/sh
cd "$(mktemp -d)"
python -m venv .venv
. .venv/bin/activate

set -ex
pip install --upgrade git+https://github.com/pypa/pip.git
cat <<EOF > pyproject.toml
[build-system]
requires = ["setuptools", "wheel", "wobblui @ https://github.com/wobblui/wobblui/archive/master.zip"]
build-backend = "setuptools.build_meta"
EOF
echo "from setuptools import setup; setup(name='hello')" > setup.py
pip install .


Sortir

+ pip install --upgrade git+https://github.com/pypa/pip.git
Collecting git+https://github.com/pypa/pip.git
  Cloning https://github.com/pypa/pip.git to /tmp/user/1000/pip-req-build-vj85ywtn
  Installing build dependencies ... done
Installing collected packages: pip
  Found existing installation: pip 18.1
    Uninstalling pip-18.1:
      Successfully uninstalled pip-18.1
  Running setup.py install for pip ... done
Successfully installed pip-19.3.dev0
+ cat
+ echo from setuptools import setup; setup(name='hello')
+ pip install .
Processing /tmp/user/1000/tmp.xAtiVhhzb7
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Building wheels for collected packages: hello
  Building wheel for hello (PEP 517) ... done
  Created wheel for hello: filename=hello-0.0.0-cp37-none-any.whl size=971 sha256=777a97a967e962ad9ae4d085b5eb369b8ead6340b4c1faae4cc42707a170bd1b
  Stored in directory: /tmp/user/1000/pip-ephem-wheel-cache-rvibo0ng/wheels/15/31/64/f6d8e3210b2f9a59fb104fc18d2651440f5e6d328adeca6341
Successfully built hello
Installing collected packages: hello
Successfully installed hello-0.0.0

je vais donc fermer ce numéro en double. S'il vous plaît laissez-moi savoir si vous voyez quelque chose de différent!

Cette page vous a été utile?
0 / 5 - 0 notes