| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,6 @@ | ||
| sudo: required | ||
| language: python | ||
| python: | ||
| - 2.6 | ||
| - 2.7 | ||
| - 3.2 | ||
| - 3.4 | ||
| Expand Down | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| Expand Up | @@ -10,7 +10,7 @@ | |
| from distutils.spawn import find_executable | ||
| from distutils import log | ||
| from platform import architecture | ||
| from subprocess import Popen, CalledProcessError, PIPE, check_call | ||
| from subprocess import Popen, CalledProcessError, PIPE, check_call, check_output | ||
| from glob import glob | ||
| import fnmatch | ||
| import sys | ||
| Expand Down Expand Up | @@ -153,7 +153,13 @@ def build_extension(self, ext): | |
|
|
||
| # Check if --enable-shared was set when Python was built | ||
| enable_shared = get_config_var("Py_ENABLE_SHARED") | ||
|
Comment thread
Copy link
Copy Markdown
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Qualitycapital "y" as in PY_ENABLE_SHARED?
Sorry, something went wrong.
All reactions
Copy link
Copy Markdown
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality
Sorry, something went wrong.
All reactions
|
||
| if enable_shared == 0: | ||
| if enable_shared: | ||
| # Double-check if libpython is linked dynamically with python | ||
| lddout = check_output(["ldd", sys.executable]) | ||
| if b'libpython' not in lddout: | ||
| enable_shared = False | ||
|
|
||
| if not enable_shared: | ||
| defines.append("PYTHON_WITHOUT_ENABLE_SHARED") | ||
|
|
||
| if hasattr(sys, "abiflags"): | ||
| Expand Down | ||
| Back | FazBrowse Home | New Git URL |
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.
Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality@denfromufa Did you try using _check_output instead?
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
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.
Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low QualityNo, but what is the difference?
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
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.
Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low QualityIt's the exact same thing 😄. Atleast it sounds like _check_output was copied from py27 so that earlier version (py26) could use it. I'm reviewing the changes we can make after dropping old python versions and noticed your code.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.