Editable installation isn't working properly
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 35/100
- Tipo de issue
- Bug
- Clareza
- Razoavelmente clara
- Status de atividade
- Estagnada
- Stack de tecnologia
- python
- Domínio
- build-system
Direção de pesquisa
Comece em pyperformance/init.py, especialmente em is_installed(), is_dev() e _is_devel_install(), e depois inspecione como dev.py cria e invoca instalações editáveis. Reproduza a falha com pip install -e . e python -m pyperformance. Está concluído quando as instalações editáveis passam na verificação da instalação e o fluxo de compilação de dev.py consegue invocar pyperformance com sucesso.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
If pyperformance is installed as editable pip install -e . from the git repository, it doesn't work when invoked
$ /tmp/tmpdir/prefix/bin/python3 -u -m pyperformance
ERROR: pyperformance should not be run without installing first
(consider using the dev.py script)
The check is done by is_installed() which calls both _is_dev() and _is_devel_install() which are both broken.
The function is_dev() bases the logic on the presence of setup.py which is long gone.
The function _is_devel_install() instead check the presence of pyperformance.egg-link in the site-packages.
In my installation I have:
pyperformance.egg-infodirectory in the git repository__editable___pyperformance_1_0_9_finder.py,__editable__.pyperformance-1.0.9.pth,pyperformance-1.0.9.dist-infoin the site-packages
I'm trying to invoke pyperformance using a dev instance via
python3.12 /work/oss/repos/pyperformance/dev.py compile_all benchmark.conf
and it will fail eventually:
2023-10-19 15:25:52,049: Building wheels for collected packages: pyperformance
2023-10-19 15:25:52,050: Building editable for pyperformance (pyproject.toml): started
2023-10-19 15:25:52,885: Building editable for pyperformance (pyproject.toml): finished with status 'done'
2023-10-19 15:25:52,888: Created wheel for pyperformance: filename=pyperformance-1.0.9-0.editable-py3-none-any.whl size=6710 sha256=159fbc3f13ae47399e04d5f7cdf5e024c3652b2ed91096f8638844238e005c0d
2023-10-19 15:25:52,888: Stored in directory: /tmp/pip-ephem-wheel-cache-ubyuatck/wheels/0d/04/cb/add3bede8e376e8789c834f334f1834467606bde2625d5a4ad
2023-10-19 15:25:52,896: Successfully built pyperformance
2023-10-19 15:25:52,922: Installing collected packages: psutil, packaging, pyperf, pyperformance
2023-10-19 15:25:53,307: Successfully installed packaging-23.2 psutil-5.9.6 pyperf-2.6.1 pyperformance-1.0.9
2023-10-19 15:25:53,437: + /tmp/tmpdir/prefix/bin/python3 -u -m pyperformance venv recreate --venv /tmp/tmpdir/venv --benchmarks '<NONE>'
2023-10-19 15:25:53,514: ERROR: pyperformance should not be run without installing first
2023-10-19 15:25:53,515: (consider using the dev.py script)
2023-10-19 15:25:53,523: Command /tmp/tmpdir/prefix/bin/python3 -u -m pyperformance venv recreate --venv /tmp/tmpdir/venv --benchmarks '<NONE>' failed with exit code 1
2023-10-19 15:25:53,565: Command /work/oss/ENTLLT-6897/venv3.12/bin/python -m pyperformance compile /work/oss/repos/ci-scripts/projects/python/benchmark.conf be5e8a010341c4d2d28ef53a1baed402ee06466e main --no-update --no-tune failed with exit code 11
2023-10-19 15:25:53,565: Benchmark exit code: 11
2023-10-19 15:25:53,566: FAILED: main-be5e8a010341c4d2d28ef53a1baed402ee06466e
- Linguagem predominante
- Python
- Estrelas
- 1k
- Forks
- 203
- Merge médio
- 1h 20min
- PRs com merge (30d)
- 2
Guia de contribuição
Nenhum guia de contribuição indexado para este repositório
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de python/pyperformance
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
python/pyperformance#346 · 3 comentários ·
-
python/pyperformance#474 · 4 reações · 1 responsável ·
-
Enable decimal benchmarks Aberta
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 25/100
python/pyperformance#473 ·
-
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 55/100
python/pyperformance#464 ·
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 48/100
python/pyperformance#460 · 2 comentários · 1 reação ·
Todas as issues de python/pyperformance
Issues semelhantes
-
货币战争手改优先级配置缺少列表元素类型校验(P3) Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
syfoud/Simulated_Scepter#172 ·
-
A cancelled tests run makes the coverage comment workflow fail and reports it as a red check on main Abertaarea: ci bug perceived difficulty: 3
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Nitjsefnie-Harness-Commons/daedalus#921 · 1 comentário ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 86/100
EleutherAI/lm-evaluation-harness#4207 ·
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 92/100
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
ClickHouse/clickhouse-connect#1057 ·