-
Notifications
You must be signed in to change notification settings - Fork 7k
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
PR: Improve calls to libpng-config on Ubuntu/Debian #2398
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2398 +/- ##
=======================================
Coverage 70.65% 70.65%
=======================================
Files 94 94
Lines 7897 7897
Branches 1241 1241
=======================================
Hits 5580 5580
Misses 1934 1934
Partials 383 383 Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
This breaks building on Debian testing and unstable. These do not feature a VERSION field in /etc/os-release. |
@t-vi |
Sorry, I was to terse there! (After waiting for compiling PyTorch to finish I was too impatient.) |
I think we needed that to fix a behavior in another PyTorch CI, but @andfoy can comment on it. I'm all in for simplifying as much as possible this pipeline. |
Hi @t-vi, thanks for reporting this problem, I think I can simplify the detection logic, so that we don't depend on reading distribution files that might change between versions |
* Improve detection of libpng-config on Ubuntu/Debian * Do not disable libdir on Mac
Fixes #2392
This PR detects if libpng was installed via apt on Ubuntu/Debian Linux distributions, if so, then the call
libpng-config --libdir
is disabled, since that flag is not available on those distributions.