-
Notifications
You must be signed in to change notification settings - Fork 176
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 280 support windows #282
Conversation
Based on Robert McGibbon's patch
Based on Robert McGibbon's patch
Based on Robert McGibbon's patch
The place where this easily goes over is in graph data files, which are stored in a deep directory tree.
…ne character early
…on spawn/forkserver mode (on Windows)
Traceback parsing has bugs on some pytest versions, cf. https://bitbucket.org/pytest-dev/py/issue/55/broken-comment-parsin
a38d41a
to
5fbbc81
Compare
It appears the Python DLLs in created (Conda) environments stay in use when run on Windows/Appveyor, so that removing the environments fails and their re-creation cannot be tested. Does not occur on all Windows platoforms, however, and adding sleeps does not seem to resolve it.
Tests pass currently; discussion on the one additional xfail is in #280 (comment) |
…not handle long ints
…ew server on windows doesn't seem to serve them right)
return exe | ||
exe = os.path.join(self._path, executable) | ||
if os.path.isfile(exe): | ||
return exe |
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.
Maybe move this to util or a base class, since it's repeated in virtualenv.py?
Ok, refactored a bit. |
Mark the tests as skipped rather than xfail, since we expect them to pass if the environment is set up.
Ok to merge? |
raise | ||
|
||
self.save_info_file(self._path) | ||
|
||
self._is_setup = True | ||
|
||
def _setup(self): | ||
def setup(self): |
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.
Why the change to public? The original intention here was that this should only be called from create
...
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.
Ok, reverted setup
back to _setup
.
Great to see this working on Windows! Other than my few minor comments, I think this is ready to merge. Thanks for this! |
# This loop cannot use xrange, because xrange on Python2 on | ||
# 32-bit systems can only deal with 32-bit integers, and | ||
# Javascript timestamps (1000*unix_timestamp) handled here | ||
# overflow this range |
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. The comment addresses this nicely.
Rebased #280 plus some additional fixes for Windows.
New PR so that Appveyor tests run.