-
Notifications
You must be signed in to change notification settings - Fork 47
Importing inputstreamhelper to dev environment #212
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
Comments
What we do for testing, is add this to requirements.txt:
Or if you prefer to stick to a specific version, you can do:
Then you can pull this automatically into your dev environment using: pip install -r requirements.txt And this works for e.g. Travis as well to get your dependencies installed. Take a look at the VRT NU add-on to see how we do this integration for testing: https://github.com/pietje666/plugin.video.vrt.nu |
Thanks @dagwieers. Actually, I need only "inputstreamhelper stubs" (something like Kodistubs https://romanvm.github.io/Kodistubs/using.html), not the full library. I guess your answer will do. :) |
Not sure how to resolve this... |
What version of pip did you use? It complains that egg_base must be a directory name, and it got 'lib', but lib is a directory name 🙄 |
|
I need to know the version of setuptools, because that is the likely cause of this issue. Also see: pypa/setuptools#1136 |
So for me using setuptools v41.2.0 on Python 2.7 it seems to work.
|
|
Try doing: |
I added a page to the wiki with the information we already learned: Also read the Integration page carefully, because we recommend to import inputstreamhelper in the routing that needs it, rather than importing it at the top. |
Great, thank you @dagwieers!
It could be useful to have this procedure under Wiki as well. Kind regards, Ivan |
I am going to close this. Thanks @ivankokan for helping improve our documentation! |
Well done! Now I can develop much easier, resolve all errors and warnings in my workspace, and also improve the xbmc.plugin.video.nba add-on with all suggestions on how to specify dependencies. (I feel like a lot of recent changes under Wiki are motivated by the status in the mentioned add-on. :)) |
Hi @dagwieers. I was trying to make clean setup in my project:
...but something is missing:
Can you please help once again? |
What does this look like: c:\users\ekokiva\appdata\local\temp\pip-install-ovahl8\inputstreamhelper\ ? |
It does not exist anymore. Whenever the last command is executed (referring to Doing the same referring to It could be that (I wanted to start with |
Aha, this is v0.3.3? So no, it does not have a setup.py yet. |
Just to have the environment synced with the code itself. :) Nevermind, it is time for upgrade! |
Hi. How can one easily import inputstreamhelper to its development environment so the message
Unable to import 'inputstreamhelper'
does not appear?The text was updated successfully, but these errors were encountered: