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

Windows + PyPI is still broken. #1009

Closed
brandtbucher opened this issue Jun 26, 2019 · 6 comments
Closed

Windows + PyPI is still broken. #1009

brandtbucher opened this issue Jun 26, 2019 · 6 comments
Assignees
Labels

Comments

@brandtbucher
Copy link

brandtbucher commented Jun 26, 2019

Original issue #955 was closed by a bot, but the issue still hasn't been fixed! Repeated here:


I've recently tried deployment using Travis and Windows. The error I get when installing deployment requirements:

$ ruby -S gem install dpl
Successfully installed dpl-pypi-1.10.7
Parsing documentation for dpl-pypi-1.10.7
Installing ri documentation for dpl-pypi-1.10.7
Done installing documentation for dpl-pypi after 0 seconds
1 gem installed
Installing deploy dependencies
failed to deploy
-z was unexpected at this time.
Couldn't install pip, setuptools, twine or wheel.

It seems like it tries to use cmd instead of bash. I've dig into the source code and found this so I think that -z comes from this line. I don't know if it is enough to just prefix this command with bash -c. What I am afraid of here is that Windows uses git bash for its build scripts and cmd is used here so I am not sure whether virtual environment would be even preserved here.

@pfaion
Copy link

pfaion commented Aug 27, 2019

If someone comes across this:

You can do a manual deploy via a script instead. This is what worked for my use case, not everything might be necessary for a minimal setup though! You might want to fine-tune the script for your use case.

file .travis.yml:

os: windows
language: sh

install: choco install python --version 3.6.8
env: PATH=/c/Python36:/c/Python36/Scripts:$PATH
script: python --version

deploy:
  skip_cleanup: true
  provider: script
  script: bash ./.travis/deploy.sh

file .travis/deploy.sh:

pip install twine wheel
python ./setup.py sdist bdist_wheel
twine upload \
    --username "************" \
    --password "************" \
    ./dist/*

Installing python3 takes quite some time, but I couldn't get it to work out of the box with the pre-installed python2 and I needed a python 3.6 wheel anyways.

@stale
Copy link

stale bot commented Mar 1, 2020

Thanks for contributing to this issue. As it has been 90 days since the last activity, we are automatically closing the issue. This is often because the request was already solved in some way and it just wasn't updated or it's no longer applicable. If that's not the case, please do feel free to either reopen this issue or open a new one. We'll gladly take a look again! You can read more here: https://blog.travis-ci.com/2018-03-09-closing-old-issues

@stale stale bot added the stale label Mar 1, 2020
@metthal
Copy link

metthal commented Mar 1, 2020

Has it been resolved? I still see -z in the code but it might have been resolved elsewhere.

@stale stale bot removed the stale label Mar 1, 2020
@Baekalfen
Copy link

It has not been resolved

@stale
Copy link

stale bot commented Jul 12, 2020

Thanks for contributing to this issue. As it has been 90 days since the last activity, we are automatically closing the issue. This is often because the request was already solved in some way and it just wasn't updated or it's no longer applicable. If that's not the case, please do feel free to either reopen this issue or open a new one. We'll gladly take a look again! You can read more here: https://blog.travis-ci.com/2018-03-09-closing-old-issues

@stale stale bot added the stale label Jul 12, 2020
@stale stale bot closed this as completed Jul 13, 2020
@CareF
Copy link

CareF commented Apr 11, 2021

Still having the same issue!

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

No branches or pull requests

7 participants