conda-forge / pyside2-feedstock

A conda-smithy repository for pyside2.
BSD 3-Clause "New" or "Revised" License
17 stars 19 forks source link

Ensure dist info is provided so pip recognizes installation #92

Closed ksunden closed 2 years ago

ksunden commented 2 years ago

This addresses the concerns brought up in #84. Official source install instructions for pyside instruct to use python setup.py install with a number of options. Since we are installing to a particular location, we use cmake/make to install instead, which makes sense, but does not handle adding the dist-info folder which is what pip looks for to see that a package is installed.

This PR adds that by using the more targeted python setup.py dist-info.

To do so on py3.8/3.9, I had to disable the python version check in setup.py (which looks at classifiers, does not use python-requires), hence the additional patch file.

Checklist

conda-forge-linter commented 2 years ago

Hi! This is the friendly automated conda-forge-linting service.

I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

ksunden commented 2 years ago

@conda-forge-admin, please rerender

ksunden commented 2 years ago

Had to add an explicit gxx build dep for some reason that I do not fully understand.... (The setup.py dist_info calls failed without it, indicating gxx could not be run) If that is a problem, I can look into it more (perhaps an env var could be set or something).

ksunden commented 2 years ago

@jschueller Do you have any opinions on this packaging change to allow pyside2 to integrate better on installed systems?

ksunden commented 2 years ago

@jschueller thoughts?

wolfv commented 2 years ago

@ksunden @jan-janssen would one of you be willing to become additional maintainers of this feedstock?

jan-janssen commented 2 years ago

@ksunden @jan-janssen would one of you be willing to become additional maintainers of this feedstock?

Sure, I am happy to - I opened a corresponding pull request https://github.com/conda-forge/pyside2-feedstock/pull/95