Mercurial > repos > jankanis > package_python3_4
comparison tool_dependencies.xml @ 1:09faf0ae581b draft
Fix some whitespace
| author | jankanis |
|---|---|
| date | Thu, 22 May 2014 06:00:27 -0400 |
| parents | e9407b729a69 |
| children | ab42c5133d1c |
comparison
equal
deleted
inserted
replaced
| 0:e9407b729a69 | 1:09faf0ae581b |
|---|---|
| 5 </package> | 5 </package> |
| 6 | 6 |
| 7 <package name="python3" version="3.4.1"> | 7 <package name="python3" version="3.4.1"> |
| 8 <install version="1.0"> | 8 <install version="1.0"> |
| 9 <actions> | 9 <actions> |
| 10 <action type="download_by_url">https://www.python.org/ftp/python/3.4.1/Python-3.4.1.tgz</action> | 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"> | 11 <action type="set_environment_for_install"> |
| 12 <repository changeset_revision="e459a9ce3fce" name="package_openssl" owner="jankanis" toolshed="http://toolshed.g2.bx.psu.edu"> | 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" /> | 13 <package name="openssl" version="1.0.1g" /> |
| 14 </repository> | 14 </repository> |
| 15 </action> | 15 </action> |
| 16 <action type="autoconf">--prefix=$INSTALL_DIR</action> | 16 <action type="autoconf">--prefix=$INSTALL_DIR</action> |
| 17 <action type="set_environment"> | 17 <action type="set_environment"> |
| 18 <environment_variable action="prepend_to" name="PATH">$INSTALL_DIR/bin</environment_variable> | 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--> | 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" /> | 20 <environment_variable action="set_to" name="PYTHONPATH" /> |
| 21 <environment_variable action="set_to" name="PYTHONHOME">$INSTALL_DIR</environment_variable> | 21 <environment_variable action="set_to" name="PYTHONHOME">$INSTALL_DIR</environment_variable> |
| 22 </action> | 22 </action> |
| 23 </actions> | 23 </actions> |
| 24 </install> | 24 </install> |
| 25 | 25 |
| 26 <readme> | 26 <readme> |
| 27 Python 3.4.1. Configured with the default settings, using --prefix=$INSTALL_DIR. | 27 Python 3.4.1. Configured with the default settings, using --prefix=$INSTALL_DIR. |
| 28 | 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: | 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 | 30 |
| 31 <action type="set_environment_for_install"> | 31 <action type="set_environment_for_install"> |
| 32 <repository name="python3" owner="jankanis"> | 32 <repository name="python3" owner="jankanis"> |
| 33 <package name="python3" version="3.4.1" /> | 33 <package name="python3" version="3.4.1" /> |
| 34 </repository> | 34 </repository> |
| 35 </action> | 35 </action> |
| 36 <action type="shell_command"> | 36 <action type="shell_command"> |
| 37 # Unset any saved environment settings from parent virtual | 37 # Unset any saved environment settings from parent virtual |
| 38 # environments, e.g. for python 2 or if Galaxy itself is running | 38 # environments, e.g. for python 2 or if Galaxy itself is running |
| 39 # from within a virtual environment. | 39 # from within a virtual environment. |
| 40 unset _OLD_VIRTUAL_PATH; unset _OLD_VIRTUAL_PYTHONHOME | 40 unset _OLD_VIRTUAL_PATH; unset _OLD_VIRTUAL_PYTHONHOME |
| 41 pyvenv {{$MY_PACKAGE_NAME}} | 41 pyvenv {{$MY_PACKAGE_NAME}} |
| 42 . {{$MY_PACKAGE_NAME}}/bin/activate | 42 . {{$MY_PACKAGE_NAME}}/bin/activate |
| 43 pip install {{$PYTHON-PACKAGE}} | 43 pip install {{$PYTHON-PACKAGE}} |
| 44 </action> | 44 </action> |
| 45 <action type="set_environment"> | 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> | 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> | 47 </action> |
| 48 | 48 |
| 49 </readme> | 49 </readme> |
| 50 | 50 |
| 51 </package> | 51 </package> |
