-
Notifications
You must be signed in to change notification settings - Fork 788
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
Eggify websockify #31
Conversation
Looks good. I pulled the change. It would be good if most of the files in include could be included too. include/websock.js is designed to be an easy interface to websockify. include/web-socket-js includes the Flash based fallback/shim for browsers without native WebSocket support. Those are both pretty important components of the full websockify suite. I'm not sure what the logical location is for those to be installed, but the README and documentation do assume that those pieces are part of websockify. If you can get around to figuring out the logical solution for that it would be great. Thanks! |
After merging, I decided to test it. I'm not sure that everything is being picked up correctly (it's been a while since I've done python dist builds though so I might be doing something wrong).
The /usr/local/bin/websockify file is actually just a stub. So I don't think any of the content made it into the install directory. python setup.py bdist_egg doesn't seem to result in any different in the egg file either. |
It worked in my special case but indeed does not work in generic case. I changed setup.py in https://github.com/SlapOS/websockify to work when doing "python setup.py ...", feel free to try it before I do another crappy pull request. In fact, setting a full package, including .js files, would need addition of another "dummy" file : __init__py. setuptools requires it. A solution to clean all those new files would be to create an src directory containing init.py, websockify.py and websocket.py (and other source files), but maybe it does not fit your needs. About numpy, do you want websockify to require it always or just use it if already present, but not explicitly requiring it? |
Ping. Have you tried it to install as an egg? Then, depending on your strategy, you may upload it into pypi.python.org to have one-line installation over different OSes. |
I would love to see support for pip. |
This is because setup.py has some problems. I will create a pull request to fix it. |
Finally : I can make it work (see pip install git+git://github.com/SlapOS/websockify.git) but it adds the init.py file. Maybe it is a good idea to follow #39 to clean up the directory structure and have : But, Kanaka, you decide! If you like it this way (current slapos websockify fork with my 3 commits), I can do a pull request.:) |
@desaintmartin, yep, now is probably the time to refactor into a directory, however, I would like to do a more minimal refactor in the short term rather than everything suggested in issue 39:
If you would like to make those changes, test them and issue a pull request I'll merge them in. Thx. |
@kanaka, wouldn't the binary conflict with the package name-wise? |
I just pushed a change to push the code down into a websockify subdirectory. The setup.py scripts seems to work much better now. Instead of a websockify script at the top level which would conflict with the directory (@timkurvers) I just have run (symlinked to websockify.py). |
Fabulous! Thanks :) |
Thanks, I'll try it soon! |
Websockify is now an egg. (clean pull request version)
The egg only includes python code and not js files. It may be changed (tell me, and I'll try in another pull request).
It will allow easy deployment ($ easy_install websockify) and can be uploaded to pypi.python.org.