-
Notifications
You must be signed in to change notification settings - Fork 183
Add install, update, uninstall helpers. #8
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
Conversation
These helpers make installation, update and uninstall of MetaCall (CLI, runtime-libs), easy.
LIB_CONTENT can be generated when installing the package, and the list of installed files can be stored in /usr/local/share/metacall/install so they can be removed later. The pre-install step for dependencies (https://github.com/metacall/core/blob/develop/tools/metacall-runtime.sh) is not done, right? It is also needed to add publish command for pip here: |
the list of installed files are stored in /usr/local/share/metacall/install so they can be removed later
'metacall-install' can handle the pre-install step for dependencies.
Todo:
here is the output of
|
Todo:
DevOps part still not done, but it should be easy to do. I have been checking travis integration: But I fear this requires to be in the same folder as the python package (https://github.com/metacall/core/tree/develop/source/ports/py_port/package). We can do it by hand instead of using deploy builtin of travis, there is no problem. I'm going to merge this by now, and we will check the travis later on. Do you know how to publish a package manually? |
Todo:
Solved most tasks with (c8a275c, b624c70, 98cb3d2, 139d0fb, 74cd07a, 291d235). Travis still not implemented (due to: #13 (comment)) but the upload script has already been coded (although it needs integration with environment variables in order to automate it for CI: https://github.com/metacall/core/blob/develop/source/ports/py_port/package/upload.sh). |
…acOSX Fix zsh detection of curl/shells/shebangs
These helpers make installation, update and uninstall of MetaCall (CLI, runtime-libs), easy.
this isn't necessarily just for the python package. you can slightly change it to be used globally as a way of managing this project.
the content of /usr/local/lib (
LIB_CONTENT
) is hardcoded for now.this could improve by storing the filenames in a text file while unpacking (package data)
OR, simply move the content inside a directory. so that it can be safely removed (you can still load them with
ldconfig -n -v /usr/local/lib/metacall
)you can try it out with
pip install -e .
also replace
docs
with the manual installation guidehere is the output of each command:
metacall-install
metacall-uninstall
there is also metacall-update Which is same as install but ignores the existing files.