-
Notifications
You must be signed in to change notification settings - Fork 711
pypi package #140
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
pypi package #140
Conversation
@louisabraham Many thanks! I'll check it and merge. |
Hi @louisabraham ,
It seems that the wheel ( |
Actually, the wheel (precompiled) isn't supposed to contained the headers, but the source distribution is. I believe it should be fixed now. Can you try again?
I uploaded it as version 3.1 |
Hi @louisabraham, However, when I run Also, I wonder, will it work if a soft link from |
Hi,
Is it because of the bdist_wheel in setup.py?
Indeed, the problem is that pypi doesn't accept linux wheels that are not [manylinux](https://github.com/pypa/manylinux).
I'm not sure about the performance implications of such precompilation so it is probably best to only distribute the sources.
It should be fixed in my latest commit.
Also, I wonder, will it work if a soft link from ../hnswlib to './hnswlib' is created instead of copying the directory?
When I tested on my computer (macOS), it worked. I don't know if this would work on other file systems.
I don't think git handles well symlink in a cross-platform way so the symlink would still have to be created when building the extension.
Since you are probably going to be the only one to push to pypi, you can do what you want. You don't even have to put the Makefile online.
Le 22 août 2019 à 9:21 PM +0200, Yury Malkov <[email protected]>, a écrit :
… Hi @louisabraham,
Many thanks, now it pip install -i https://test.pypi.org/simple/ hnswlib works, both from Linux and Windows!
However, when I run make pypi, it ends with error:
HTTPError: 400 Client Error: Binary wheel 'hnswlib-0.3-cp36-cp36m-linux_x86_64.whl' has an unsupported platform tag 'linux_x86_64'. for url: https://upload.pypi.org/legacy/
Is it because of the bdist_wheel in setup.py?
Also, I wonder, will it work if a soft link from ../hnswlib to './hnswlib' is created instead of copying the directory?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Great! I've uploaded the library and it works! Thank you! Can you please redo the PR against the develop branch? I'll merge it right away. It seems that git supports symlink, as done for nmslib (https://github.com/nmslib/nmslib/blob/master/python_bindings/nmslib), I can test It for this purpose. |
The |
Thank you so much! |
pypi package
Fix #75
I uploaded a test package to https://test.pypi.org/project/hnswlib/
You can already test it using
To upload yourself (@yurymalkov) a version to regular pypi:
pip install twine
~/pypirc
and put:cd python_bindings
make pypi
After that, people will be able to install it simply with
pip install hnswlib
. If people still want to install it from thepython_bindings
folder, they have tocp -r ../hnswlib .
before (see travil build).