-
Notifications
You must be signed in to change notification settings - Fork 12
Installation
Python 3.3 or greater with the following packages installed:
- awscli
- json
- requests
- urllib3
Copy the link of the zip or tarball of the latest release. Let's store this in a variable for the purpose of this documentation and call it $release
.
Use one of the pip3 methods below. Alternatively, you can follow the instructions for a manual installation if that is preferred, i.e. if you want to use this through an environment module.
pip3 install $release
pip3 install --user $release
The latter way is useful if you are worried about overwriting any scripts that other packages already installed in your Python installation - You knew that pip would do this, without warning you, right?
See the virtualenv docs for how to setup your virtual environment (very simple), then use pip3 as described above. This is the most secure of the outlined methods for isolating your Python environment for use with this package (and any given package for that matter).
pip3 install -U $release
- Create a folder called encode_utils in a location where you will store releases of this tool.
- Download the latest release into this new folder, and unpack the tarball or zip file. For example, if the release is tagged as 1.0.0, you should now have the folder path
/prefix-path/encode_utils-1.0.0
, whereprefix-path
is folder path you chose to contain the release.
You'll need to update your PATH and PYTHONPATH environment variables. First, create the following variable to make the following steps easier:
EU_RELEASE=/prefix-path/encode_utils-1.0.0
- Update your PYTHONPATH environment variable as follows:
export PYTHONPATH=${EU_RELEASE}:${PYTHONPATH}
- Update your PATH environment variable as follows:
export PATH=${EU_RELEASE}/encode_utils/MetaDataRegistration:${PATH} export PATH=${EU_RELEASE}/encode_utils/scripts:${PATH}
If you use environment modules on your system, you could wrap these commands in such a module.
See the configuration wiki page.