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

Consider options for offline install and document #168

Closed
spwoodcock opened this issue Jul 23, 2023 · 3 comments
Closed

Consider options for offline install and document #168

spwoodcock opened this issue Jul 23, 2023 · 3 comments
Labels

Comments

@spwoodcock
Copy link
Member

Is your feature request related to a problem? Please describe.

There isn't a good way to install or update osm-fieldwork offline currently.

Describe the solution you'd like

Allowing updates to an installed version with with pip install . would be ideal, but maybe not feasible.

Creating the Kivy UI would help solve the issue of install, as all deps would be packaged into an apk and installable entirely offline.

Options should be considered and any solutions documented.

@robsavoye
Copy link
Collaborator

I worked around this by just copying the modified py files into the site-packages directory.

@spwoodcock
Copy link
Member Author

We could put that command in the Makefile as a temp workaround until I look into this?

@spwoodcock
Copy link
Member Author

This will hopefully be solved by #63.
If we have a bundled version of osm-fieldwork in an app, then we shouldn't need to install osm-fieldwork offline.
If this is still necessary, a simple copy into the site-packages dir should work as Rob suggested.

Something like:

site_packages_dir=$(python -c "import site; print(site.getsitepackages()[0])")
cp -r "$PWD"/osm_fieldwork/* "$site_packages_dir/osm-fieldwork/"

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

No branches or pull requests

2 participants