Mercurial > repos > jankanis > package_python3_4
comparison tool_dependencies.xml @ 0:e9407b729a69 draft
Uploaded
| author | jankanis |
|---|---|
| date | Thu, 22 May 2014 05:58:18 -0400 |
| parents | |
| children | 09faf0ae581b |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:e9407b729a69 |
|---|---|
| 1 <?xml version="1.0"?> | |
| 2 <tool_dependency> | |
| 3 <package name="openssl" version="1.0.1g"> | |
| 4 <repository changeset_revision="e459a9ce3fce" name="package_openssl" owner="jankanis" prior_installation_required="True" toolshed="http://toolshed.g2.bx.psu.edu" /> | |
| 5 </package> | |
| 6 | |
| 7 <package name="python3" version="3.4.1"> | |
| 8 <install version="1.0"> | |
| 9 <actions> | |
| 10 <action type="download_by_url">https://www.python.org/ftp/python/3.4.1/Python-3.4.1.tgz</action> | |
| 11 <action type="set_environment_for_install"> | |
| 12 <repository changeset_revision="e459a9ce3fce" name="package_openssl" owner="jankanis" toolshed="http://toolshed.g2.bx.psu.edu"> | |
| 13 <package name="openssl" version="1.0.1g" /> | |
| 14 </repository> | |
| 15 </action> | |
| 16 <action type="autoconf">--prefix=$INSTALL_DIR</action> | |
| 17 <action type="set_environment"> | |
| 18 <environment_variable action="prepend_to" name="PATH">$INSTALL_DIR/bin</environment_variable> | |
| 19 <!-- empty PYTHONPATH, otherwise we will get Galaxy's Python 2 libraries in the Python 3 path--> | |
| 20 <environment_variable action="set_to" name="PYTHONPATH" /> | |
| 21 <environment_variable action="set_to" name="PYTHONHOME">$INSTALL_DIR</environment_variable> | |
| 22 </action> | |
| 23 </actions> | |
| 24 </install> | |
| 25 | |
| 26 <readme> | |
| 27 Python 3.4.1. Configured with the default settings, using --prefix=$INSTALL_DIR. | |
| 28 | |
| 29 Python as of version 3.3 includes a built-in virtual environment manager. To create a python 3 virtual env, include the following actions in your tool_dependencies.xml: | |
| 30 | |
| 31 <action type="set_environment_for_install"> | |
| 32 <repository name="python3" owner="jankanis"> | |
| 33 <package name="python3" version="3.4.1" /> | |
| 34 </repository> | |
| 35 </action> | |
| 36 <action type="shell_command"> | |
| 37 # Unset any saved environment settings from parent virtual | |
| 38 # environments, e.g. for python 2 or if Galaxy itself is running | |
| 39 # from within a virtual environment. | |
| 40 unset _OLD_VIRTUAL_PATH; unset _OLD_VIRTUAL_PYTHONHOME | |
| 41 pyvenv {{$MY_PACKAGE_NAME}} | |
| 42 . {{$MY_PACKAGE_NAME}}/bin/activate | |
| 43 pip install {{$PYTHON-PACKAGE}} | |
| 44 </action> | |
| 45 <action type="set_environment"> | |
| 46 <environment_variable name="PYTHONPATH" action="prepend_to">$INSTALL_DIR/lib/python3.4/site-packages:$INSTALL_DIR/lib64/python3.4/iste-packages</environment_variable> | |
| 47 </action> | |
| 48 | |
| 49 </readme> | |
| 50 | |
| 51 </package> | |
| 52 </tool_dependency> |
