-
-
Notifications
You must be signed in to change notification settings - Fork 573
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
Use startswith('linux') to check for the Linux platform #1263
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #1263 +/- ##
===========================================
- Coverage 83.29% 83.29% -0.01%
===========================================
Files 117 117
Lines 12922 12922
===========================================
- Hits 10764 10763 -1
- Misses 2158 2159 +1
Continue to review full report at Codecov.
|
@sschuberth thank you. Do you mind adding you sign-off (either in each of the commit or at least in the body of this PR)? |
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.
Thank you!. Please focus only on Linux and let Windows and macOS aside for now.
etc/conf/base.py
Outdated
os = 'linux' | ||
elif 'win32' in sys_platform: | ||
elif sys_platform == 'win32': |
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.
There may be some risk attached to changing the tests here... Do you mind leaving these as is?
etc/configure.py
Outdated
platform_names = ('posix', 'linux',) | ||
elif 'win32' in sys_platform: | ||
elif sys_platform == 'win32': |
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.
Same as above... please only change the Linux test.
thirdparty/virtualenv.py
Outdated
@@ -1052,10 +1052,10 @@ def copy_required_modules(dst_prefix, symlink): | |||
if f is not None: | |||
f.close() | |||
# special-case custom readline.so on OS X, but not for pypy: | |||
if modname == 'readline' and sys.platform == 'darwin' and not ( | |||
if modname == 'readline' and is_darwin and not ( |
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.
You should not change anything in virtualenv... this is the official/standard code so it should not be modified .
f47d9b6
to
46d3573
Compare
@pombredanne, I've addressed all your comments. |
Some platforms like Alpine Linux actually return 'linux2' here, i.e. they include the major Linux version as a suffix, also see [1]. [1] https://docs.python.org/dev/library/sys.html#sys.platform Signed-off-by: Sebastian Schuberth <[email protected]>
46d3573
to
3c55c59
Compare
@sschuberth Thanks++, merging |
This is to support #1262