takluyver / pynsist

Build Windows installers for Python applications
https://pynsist.readthedocs.io/
Other
883 stars 119 forks source link

Include dependencies from github #186

Open geraore opened 4 years ago

geraore commented 4 years ago

Hello all,

I'm trying to build my project with pynist, however, I have dependencies from github, so I was trying to build this adding it to such as: extra_wheel_sources= git+https://github.com/geraore/aw-client.git, so I'm getting the error that the system can not find the specific path.

The question is how to add github to the requirements?.

Regards

takluyver commented 4 years ago

Hi @geraore - at present dependencies for Pynsist have to come from either

So if you don't want to put your package on PyPI, you can script building a wheel from it, putting that somewhere Pynsist can see, and then using either the local_wheels option pointing to the file, or extra_wheel_sources pointing to the folder it's in.

geraore commented 4 years ago

Hi @takluyver thank you for your quick response, I made the wheel files, however I can not find specific examples on how to add the extra_wheel_sources

I can compile and create the installer, however the wheels are not added to the installer. As example my installer is in G:\Mi unidad\Indurama\proyectos\manejo licenciamiento\fuentes\aw-watcher-window and I have tried the following:

extra_wheel_sources= "G:\Mi unidad\Indurama\proyectos\manejo licenciamiento\fuentes\aw-watcher-window\wheels"

extra_wheel_sources= G:\Mi unidad\Indurama\proyectos\manejo licenciamiento\fuentes\aw-watcher-window\wheels

extra_wheel_sources= ./wheels

None of the above have installed the extra wheel files

takluyver commented 4 years ago

extra_wheel_sources points to a directory to look in for wheels - you still need to tell it which wheels to include:

pypi_wheels = aw-client==0.3
extra_wheel_sources=wheels/

See the docs - I think they're fairly clear, though they don't have an example of this. Unfortunately the naming of pypi_wheels is a bit misleading (obviously when I chose the name it only got wheels from PyPI).