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

Publish a downloadable windows installer? #1124

Closed
jgeewax opened this issue Sep 7, 2015 · 8 comments
Closed

Publish a downloadable windows installer? #1124

jgeewax opened this issue Sep 7, 2015 · 8 comments
Assignees

Comments

@jgeewax
Copy link
Contributor

jgeewax commented Sep 7, 2015

Is this worthwhile? Lots of people want the MSI....

@dhermes
Copy link
Contributor

dhermes commented Sep 7, 2015

...which people? These people must not be GitHub users? (FWIW we've seen #1009, which reports an issue with PyCrypto. But we don't strictly need to rely on PyCrypto.)

@tseaver Do you have any experience building an MSI? @jgeewax Do you (or know anyone, maybe on the gcloud CLI team) that does?

I Googled around for a bit and found pynsist and pyinstaller but they don't really seem to do the trick.

@tseaver
Copy link
Contributor

tseaver commented Sep 7, 2015

@dhermes My experience is limited to supporting the folks who manage winbot.zope.org, which builds the Windows binaries (.egg and .exe) for the Zope-related packages. I can dig into how that machine is configured, if desired, but I haven't run Windows anywhere for more than fifteen years.

@dhermes
Copy link
Contributor

dhermes commented Sep 8, 2015

It seems someone is trying to solve this problem in a big way:

https://packaging.python.org/en/latest/appveyor.html
http://www.appveyor.com/

@dhermes
Copy link
Contributor

dhermes commented Sep 8, 2015

Seems we could have Appveyor only build on tags: http://www.appveyor.com/docs/branches

@tseaver Do you know if it's easy to add a file (i.e. a Windows MSI) to an existing PyPI upload? Or maybe we should stop pushing new versions from Travis and just do it from Appveyor?

@tseaver
Copy link
Contributor

tseaver commented Sep 8, 2015

@dhermes You can upload additional dists to an already-registered and uploaded release, even from different machines / accounts (as long as the uploading account has the maintainer role): winbot.zope.org polls for new sdist releases to its package set and builds/uploads the Windows-specific binary distributions.

E.g.:

$ python setup.py register sdist upload
$ python setup.py bdist_whatever upload

@dhermes
Copy link
Contributor

dhermes commented Nov 16, 2015

Working on this today

dhermes added a commit to dhermes/google-cloud-python that referenced this issue Jan 22, 2016
@dhermes
Copy link
Contributor

dhermes commented Jan 25, 2016

@jgeewax and I just discussed. Since we don't have any native code, our wheels and MSI can be built on any platform, so we just need to add msi (and maybe wininst) to the Travis distributions.

@dhermes
Copy link
Contributor

dhermes commented Jan 25, 2016

Update: Running python setup.py bdist_msi completely fails

error: invalid command 'bdist_msi'

and python setup.py bdist_wininst runs but fails to complete with

Warning: Can't read registry to find the necessary compiler setting
Make sure that Python modules _winreg, win32api or win32con are installed.
error: [Errno 2] No such file or directory: '/usr/lib/python2.7/distutils/command/wininst-6.0.exe', /usr/lib/python2.7/distutils/command/wininst-6.0.exe not included in the Debian packages.

This seems to contradict a comment from the docs:

These installers can even be created on Unix platforms or Mac OS X.

dhermes added a commit to dhermes/google-cloud-python that referenced this issue Jan 28, 2016
parthea pushed a commit that referenced this issue Jul 6, 2023
* update readme

* keep entity sentiment in v1beta2 as well

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

No branches or pull requests

4 participants