conda-forge / conda-forge/python-xxhash-feedstock

Wrong pip reported version

Open
#24 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
No language data
Stars
0
Forks
8
Avg merge
1d 1h
Merged PRs (30d)
1

Description

### Solution to issue cannot be found in the documentation.

- [X] I checked the documentation.

### Issue

Anaconda environments can handle packages installed via conda and pip.
The version of xxhash reported by pip is wrong (0.0.0 has shown below) and that causes issue when a package that has xxhash as a dependency is installed via pip in an anaconda environment.

Reproducer:
```
> conda create -p /tmp/foo python-xxhash
...
> conda run -p /tmp/foo pip list
Package Version
---------- -------
pip 22.0.4
setuptools 62.0.0
wheel 0.37.1
xxhash 0.0.0
```

### Installed packages

```shell
# packages in environment at /tmp/foo:
#
# Name Version Build Channel
_libgcc_mutex 0.1 conda_forge conda-forge
_openmp_mutex 4.5 1_gnu conda-forge
bzip2 1.0.8 h7f98852_4 conda-forge
ca-certificates 2021.10.8 ha878542_0 conda-forge
ld_impl_linux-64 2.36.1 hea4e1c9_2 conda-forge
libffi 3.4.2 h7f98852_5 conda-forge
libgcc-ng 11.2.0 h1d223b6_14 conda-forge
libgomp 11.2.0 h1d223b6_14 conda-forge
libnsl 2.0.0 h7f98852_0 conda-forge
libuuid 2.32.1 h7f98852_1000 conda-forge
libzlib 1.2.11 h166bdaf_1014 conda-forge
ncurses 6.3 h9c3ff4c_0 conda-forge
openssl 3.0.2 h166bdaf_1 conda-forge
pip 22.0.4 pyhd8ed1ab_0 conda-forge
python 3.10.4 h2660328_0_cpython conda-forge
python-xxhash 3.0.0 py310h5764c6d_0 conda-forge
python_abi 3.10 2_cp310 conda-forge
readline 8.1 h46c0cb4_0 conda-forge
setuptools 62.0.0 py310hff52083_0 conda-forge
sqlite 3.37.1 h4ff8645_0 conda-forge
tk 8.6.12 h27826a3_0 conda-forge
tzdata 2022a h191b570_0 conda-forge
wheel 0.37.1 pyhd8ed1ab_0 conda-forge
xxhash 0.8.0 h7f98852_3 conda-forge
xz 5.2.5 h516909a_1 conda-forge
zlib 1.2.11 h166bdaf_1014 conda-forge
```

### Environment info

```shell
active environment : /tmp/foo
active env location : /tmp/foo
shell level : 1
user config file : /home/antoine.dechaume/.condarc
populated config files : /opt/mambaforge/.condarc
/home/antoine.dechaume/.condarc
conda version : 4.12.0
conda-build version : not installed
python version : 3.9.12.final.0
virtual packages : __linux=5.16.18=0
__glibc=2.34=0
__unix=0=0
__archspec=1=x86_64
base environment : /opt/mambaforge (writable)
conda av data dir : /opt/mambaforge/etc/conda
conda av metadata url : None
channel URLs : https://conda.anaconda.org/conda-forge/linux-64
https://conda.anaconda.org/conda-forge/noarch
https://repo.anaconda.com/pkgs/main/linux-64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/r/linux-64
https://repo.anaconda.com/pkgs/r/noarch
package cache : /opt/mambaforge/pkgs
/home/antoine.dechaume/.conda/pkgs
envs directories : /opt/mambaforge/envs
/home/antoine.dechaume/.conda/envs
platform : linux-64
user-agent : conda/4.12.0 requests/2.27.1 CPython/3.9.12 Linux/5.16.18-200.fc35.x86_64 fedora/35 glibc/2.34
UID:GID : 1000:1000
netrc file : None
offline mode : False
```

Contributor guide

Open the contributing guide

Research direction

Reproduce the report with `conda create -p /tmp/foo python-xxhash` and `conda run -p /tmp/foo pip list`, then inspect the python-xxhash feedstock metadata and packaging configuration. Done means pip reports the installed xxhash package version correctly in an Anaconda environment and the dependency-install scenario no longer sees version 0.0.0.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.