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

Implement Windows support (issue #53) #60

Merged
merged 1 commit into from
Oct 30, 2015
Merged

Conversation

matysek
Copy link
Contributor

@matysek matysek commented Oct 21, 2015

I tried to implement Windows support #53

  • It works for me.
  • I tested it on Win7 / Python 3.4.3
  • All tests pass for me on Windows and two are skipped because are not relevant for Windows.

Fix os.path.samefile() usage on Windows + python 2.
@xolox
Copy link
Member

xolox commented Oct 26, 2015

Hi Martin and thanks for the effort you've put into this pull request!

It's funny, I was recently looking into AppVeyor for testing several of my Python projects on Windows (pip‑accel being one of those projects) and here you are wanting to run pip‑accel itself on AppVeyor just a few weeks later :-).

I'm planning to get this pull request merged this week. I've already started but won't finish it tonight and I thought I should let you know instead of leaving you waiting without feedback.

xolox referenced this pull request Oct 27, 2015
======================================================================
ERROR: test_environment_validation (pip_accel.tests.PipAccelTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "c:\projects\pip-accel\pip_accel\tests.py", line 150, in test_environment_validation
    os.environ['VIRTUAL_ENV'] = original_value
  File "C:\Python27\lib\os.py", line 422, in __setitem__
    putenv(key, item)
TypeError: must be string, not None
======================================================================

https://ci.appveyor.com/project/xolox/pip-accel/build/1.0.14#L185
xolox referenced this pull request Oct 27, 2015
This is needed because the previous test package (verboselogs) didn't
have wheel distributions available while the new test package (pep8)
does have wheels available. This pulls in setuptools >= 0.8 which breaks
the test's assumptions (which were previously valid and are once again
valid with this change).

For reference: https://travis-ci.org/paylogic/pip-accel/jobs/87729211
xolox referenced this pull request Oct 27, 2015
This is needed because the previous test package (verboselogs) didn't
have wheel distributions available while the new test package (pep8)
does have wheels available. This pulls in setuptools >= 0.8 which breaks
the test's assumptions (which were previously valid and are once again
valid with this change).

For reference: https://travis-ci.org/paylogic/pip-accel/jobs/87738788
xolox referenced this pull request Oct 27, 2015
On Python 2.6 tar file objects don't support being used as context
managers. The easiest way to fix this is to bypass the syntactic
sugar while keeping the semantics using a try/finally construct.

For reference: https://travis-ci.org/paylogic/pip-accel/builds/87742226
@xolox
Copy link
Member

xolox commented Oct 27, 2015

For posterity: I'm working on setting up AppVeyor CI for pip-accel because I don't want to claim support for a platform I can't actually test, I don't have access to any Windows systems and I don't feel like paying for a Windows license just so I can test an open source project. Fortunately AppVeyor is free for open source projects which is pretty cool :-).

@matysek
Copy link
Contributor Author

matysek commented Oct 27, 2015

@xolox This is appveyor project where I use pip-accel: https://ci.appveyor.com/project/matysek/pyinstaller

xolox added a commit that referenced this pull request Oct 28, 2015
Continuation of refactoring/cleanup of changes proposed in this
pull request: #60
@xolox xolox merged commit cd96283 into paylogic:master Oct 30, 2015
xolox added a commit that referenced this pull request Oct 30, 2015
@xolox
Copy link
Member

xolox commented Oct 30, 2015

Hi again Martin,

After some intense Windows testing and debugging (last time I did that was quite a few years ago :-) I released pip-accel 0.33 to PyPI and GitHub. If you're interested in the additional changes I made (quite a few) you can take a look at pull request #61 (which included the changes from this pull request). If you encounter any further Windows issues feel free to open another issue.

Thanks for your contribution!

@xolox xolox mentioned this pull request Oct 30, 2015
@matysek
Copy link
Contributor Author

matysek commented Oct 30, 2015

@xolox Thanks for integrating and cleaning up windows support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants