spotify / voyager

🛰️ An approximate nearest-neighbor search library for Python and Java with a focus on ease of use, simplicity, and deployability.
https://spotify.github.io/voyager/
Apache License 2.0
1.3k stars 53 forks source link

Update contribution docs and enable stubgen virtualenv compatibility #17

Closed markkohdev closed 1 year ago

markkohdev commented 1 year ago

Getting my local env set up with the repo and found some stuff that was out of date. Also psutil.Process(os.getpid()).exe() will call out to your global python interpreter if you're in a virtualenv. If your global env doesn't have all of the requirements install it will fail with ModuleNotFoundError, so let's first check what python3 resolves to and use that in order to execute the subprocess within the virtualenv.