Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

conda-forge-ubuntu-standard: Pillow fails to install (follow up) #30658

Closed
mkoeppe opened this issue Sep 25, 2020 · 20 comments
Closed

conda-forge-ubuntu-standard: Pillow fails to install (follow up) #30658

mkoeppe opened this issue Sep 25, 2020 · 20 comments

Comments

@mkoeppe
Copy link
Contributor

mkoeppe commented Sep 25, 2020

Follow-up from #30550: A small fix up for the setup.py bdist_wheel for pillow made in #29500, so that the fix for Pillow on conda-forge-ubuntu-standard from #30550 works again.

Depends on #30550
Depends on #29500

CC: @isuruf @dimpase

Component: packages: standard

Author: Matthias Koeppe

Branch/Commit: ff0c973

Reviewer: Isuru Fernando

Issue created by migration from https://trac.sagemath.org/ticket/30658

@mkoeppe mkoeppe added this to the sage-9.2 milestone Sep 25, 2020
@isuruf
Copy link
Member

isuruf commented Sep 25, 2020

comment:1

Looks like that's not the issue. build_ext is first run with the options that we give and then build_ext is run again without the options we give. Not sure why it is run twice.

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Sep 25, 2020

comment:2

I started to use bdist_wheel (#29500) - perhaps this is not playing well with pillow's setup.py

@isuruf
Copy link
Member

isuruf commented Sep 25, 2020

comment:3

@mkoeppe, yes, that's an issue. Options passed to build_ext are not used in bdist_wheel.

@isuruf
Copy link
Member

isuruf commented Sep 25, 2020

comment:4

A fix for this would be to move bdist_wheel before build_ext.

python setup.py bdist_wheel build_ext <options>

instead of

python setup.py build_ext <options> bdist_wheel

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Sep 25, 2020

comment:5

Thanks! I'll try this

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Sep 25, 2020

Dependencies: #29500

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Sep 25, 2020

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Sep 25, 2020

Author: Matthias Koeppe

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Sep 25, 2020

Commit: ff0c973

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Sep 25, 2020

Last 10 new commits:

0a64674build/pkgs/gambit/spkg-install.in: Install via bdist_wheel
ca58693build/pkgs/pillow/spkg-install.in: Install via bdist_wheel
5a747c4build/bin/sage-pip-{install,uninstall}: Remove pip2 support
9ee2110build/bin/sage-dist-helpers: Also use $sudo for storing the wheel file
d7aac84src/doc/en/developer/packaging.rst: Update sdh_... documentation
9b7c7a0build/bin/sage-pip-{install,uninstall}: Fix typo in comment
4135e8bbuild/bin/sage-pip-install: Remove an outdated comment
f2e7075Merge tag '9.2.beta13' into t/29500/install_all_python_packages_via_pip_wheel__create_pep_503_simple_repository_for_wheels
c2efa14Merge branch 't/29500/install_all_python_packages_via_pip_wheel__create_pep_503_simple_repository_for_wheels' into t/30658/conda_forge_ubuntu_standard__pillow_fails_to_install__follow_up_
ff0c973build/pkgs/pillow/spkg-install.in: Fix up 'setup.py bdist_wheel' command

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Sep 25, 2020

Changed dependencies from #29500 to #30550, #29500

@mkoeppe

This comment has been minimized.

@isuruf
Copy link
Member

isuruf commented Sep 25, 2020

comment:9

you might need to do the same for numpy

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Sep 25, 2020

comment:10

For numpy I think the command is OK:

sage-python23 setup.py \
        --no-user-cfg \
       bdist_wheel \
       ${NUMPY_FCONFIG} || sdh_die "Error building wheel for numpy"

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Sep 25, 2020

comment:11

Confirmed that pillow now works:

$  tox -e docker-conda-forge-ubuntu-standard -- pillow
...
[pillow-7.2.0] installing. Log file: /sage/logs/pkgs/pillow-7.2.0.log
  [pillow-7.2.0] successfully installed.

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Sep 25, 2020

comment:12

Also

[numpy-1.19.1] installing. Log file: /sage/logs/pkgs/numpy-1.19.1.log
  [numpy-1.19.1] successfully installed.

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Sep 25, 2020

comment:13

Ready for review

@isuruf
Copy link
Member

isuruf commented Sep 25, 2020

Reviewer: Isuru Fernando

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Sep 25, 2020

comment:15

Thanks!

@vbraun
Copy link
Member

vbraun commented Sep 30, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants