Skip to content
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

Give an example for an application from the Python Package Index #7

Open
probonopd opened this issue Dec 30, 2018 · 7 comments
Open

Comments

@probonopd
Copy link
Contributor

probonopd commented Dec 30, 2018

The README.md currently shows an example of how to use linuxdeploy-plugin-conda for an application that is "in" Conda, using export CONDA_CHANNELS=freecad CONDA_PACKAGES=freecad.

However, not all applications are "in" Conda. I think they can still be installed using pip if they are "in" the Python Package Index (PyPI). Python should be taken from (Mini)conda and the application from PyPI in this case.

Can you please give an example of how to use linuxdeploy-plugin-conda to produce an AppImage of, say, https://pypi.org/project/galacteek/?

Reference:
pinnaculum/galacteek#1 (comment)

@probonopd
Copy link
Contributor Author

Another nice one for which an example would be great is https://github.com/trufont/trufont.

@TheAssassin
Copy link
Member

You're right, this information is missing right now in the README. For now, here's some info:

export PIP_REQUIREMENTS=dep1:dep2 can be used to list dependencies that need to be installed from PyPI. If you have local dependencies, you can also add paths there, e.g., export PIP_REQUIREMENTS=/.../path/to/dep1:pypi_dep2. If those local dependencies assume you to be in a specific directory (some packages have a setup.py which does not calculate paths to files it needs properly but just assumes you to be in the same dir, for instance), you can export PIP_WORKDIR=....

@probonopd
Copy link
Contributor Author

probonopd commented Jan 1, 2019

Thanks for the pointers. Can you add an example please, assuming that the main payload application shall be fetched from the PyPiI servers.

@probonopd
Copy link
Contributor Author

I think this serves the purpose. Thank you.

@TheAssassin
Copy link
Member

Thinking on how this could be documented in the best way. I guess it's all about putting examples in the README.

@probonopd
Copy link
Contributor Author

For now, something like https://github.com/probonopd/linuxdeployqt#projects-using-linuxdeployqt would be better than nothing. Do you want me to add some examples there?

@TheAssassin
Copy link
Member

Please feel free to do so. Writing a little guide right now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants