← All tasks
pythoncvxpy/cvxpy #2447Not a task: already works

conda install of 1.5.1 not detected by pip

envgap__cvxpy__cvxpy-2447

01 / FAILURE SIGNATURE

As reported upstream

No identifying execution failure has been captured.
Not a benchmark task.
  • The project already builds and runs before the fix, so there is nothing to repair.

02 / ENVIRONMENT RECIPE

Base commit
f0986293c04be1f9bec1129aa4e52354ae8b2e01
Manifest
setup.py
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

cvxpy/cvxpy #2447 · read the original issue
**Describe the bug**

There is a bug in the packaging of v1.5.1. Pip fails to detect it when installed with conda; it seems to be missing the dist-info directory.



**To Reproduce**

In a fresh conda environment, install the latest cxvpy:

`conda install cvxpy -c conda-forge `



**Expected behavior**

I expect to see cvxpy listed as installed when calling `pip list` or `pip freeze`. 



**Output**

cvxpy shows up as `UNKNOWN` when calling `pip list` or `pip freeze`:

```bash

(test-pip) smiskov@PC99612 cvxpy % pip list

Package         Version

--------------- -----------

build           1.2.1

clarabel        0.7.1

ecos            2.0.13

numpy           1.26.4

osqp            0.6.3

packaging       24.0

pip             24.0

pyproject_hooks 1.1.0

qdldl           0.1.7.post2

scipy           1.13.0

scs             3.2.4.post1

setuptools      69.5.1

UNKNOWN         1.5.1

wheel           0.43.0

```



**Version**

 - OS: macOS 14.4.1 and Ubuntu 22.04.4

 - CVXPY Version: 1.5.1



**Additional context**

This was working as expected in v1.4.3. We saw this bug when building our conda package that depends on cvxpy. The build fails to pass the pip check test in our conda recipe (see workflow failure [here](https://github.com/cvxgrp/spcqe/actions/runs/9100537427/job/25015611547#step:6:311) and PR [here](https://github.com/cvxgrp/spcqe/pull/7)).
Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]