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

Setup cleanup #1790

Merged
merged 7 commits into from
Apr 10, 2016
Merged

Setup cleanup #1790

merged 7 commits into from
Apr 10, 2016

Conversation

wiredfool
Copy link
Member

So, I'm trying to track down a compile error on one of my machines and the hood came off setup.py and I nearly threw up a little.

So.

  • Dir and file are not valid variable names.
  • We were accepting --enable-want and such as valid flags due to sloppy metaprogramming.
  • Debug logging is added, not using the logger, since we're spewing stuff to the console anyway.

Some continuing WTFs:

  • ~~We're not actually checking for the tiff or freetype headers. ~~
  • ~~It's not finding libopenjp2 on my machine, and searching for the libraries is something that's down in the compiler. Which sucks. ~~ -- It was looking for openjp2_d.so.

The debug logging isn't complete, and it's still not answering my compile question. Comments welcome.

Fixes #679

@coveralls
Copy link

Coverage Status

Coverage remained the same at 76.879% when pulling 954abf3 on wiredfool:setup_cleanup into 4d234fb on python-pillow:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 76.879% when pulling dbba055 on wiredfool:setup_cleanup into 4d234fb on python-pillow:master.

@wiredfool wiredfool modified the milestone: 3.3.0 Apr 1, 2016
@coveralls
Copy link

Coverage Status

Coverage increased (+0.1%) to 77.019% when pulling 19e06b9 on wiredfool:setup_cleanup into 4d234fb on python-pillow:master.

wiredfool and others added 2 commits April 9, 2016 08:11
Sorry, couldn't resist. As for the issues you raised, they are unfortunately not surprising. Our setup.py has to be complex, but doesn't need to be complicated. I've been trying to avoid a complete rewrite, but maybe it's time.
@wiredfool wiredfool changed the title [In Progress] Setup cleanup Setup cleanup Apr 9, 2016
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 233afec on wiredfool:setup_cleanup into * on python-pillow:master*.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 233afec on wiredfool:setup_cleanup into * on python-pillow:master*.

print("library, and set the corresponding ROOT variable in the")
print("setup.py script.")
print("library and headers.")
print("See http://pillow.readthedocs.org/en/latest/installation.html#building-from-source")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be https

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That reminds me, because of the way that RTD is setup with versions, I can't find a deep permalink for the installation docs. Which means that all of the googable links to the documentation 404 eventually, unless they're going off of latest.

@hugovk
Copy link
Member

hugovk commented Apr 9, 2016

Looks good to merge.

@wiredfool wiredfool merged commit 80758e1 into python-pillow:master Apr 10, 2016
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling a2bc14c on wiredfool:setup_cleanup into * on python-pillow:master*.

@wiredfool wiredfool deleted the setup_cleanup branch October 2, 2017 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants