diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-07-19 13:04:34 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-07-19 13:04:34 +0100 |
commit | 63b2c0efb0684f8577c44d181c991cf471351fc5 (patch) | |
tree | b8f55ee32396b20b2788beff92c3ce55c4e9c14f /sci-chemistry/pymol/pymol-2.5.0-r3.ebuild | |
parent | 5c9d85c89af4d9d7228124d3d0bcdd14a9aba91a (diff) |
gentoo auto-resync : 19:07:2023 - 13:04:34
Diffstat (limited to 'sci-chemistry/pymol/pymol-2.5.0-r3.ebuild')
-rw-r--r-- | sci-chemistry/pymol/pymol-2.5.0-r3.ebuild | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/sci-chemistry/pymol/pymol-2.5.0-r3.ebuild b/sci-chemistry/pymol/pymol-2.5.0-r3.ebuild index 92415ecd58a6..ae7eda57d7a6 100644 --- a/sci-chemistry/pymol/pymol-2.5.0-r3.ebuild +++ b/sci-chemistry/pymol/pymol-2.5.0-r3.ebuild @@ -5,6 +5,7 @@ EAPI=8 PYTHON_COMPAT=( python3_{9..11} ) DISTUTILS_USE_SETUPTOOLS=no +DISTUTILS_EXT=1 inherit desktop flag-o-matic xdg distutils-r1 @@ -56,24 +57,25 @@ python_prepare_all() { append-cxxflags -std=c++0x - use !netcdf && mydistutilsargs=( --no-vmd-plugins ) - distutils-r1_python_prepare_all } +python_configure_all() { + use !netcdf && DISTUTILS_ARGS=( --no-vmd-plugins ) +} + python_install() { distutils-r1_python_install \ --pymol-path="${EPREFIX}/usr/share/pymol" -} - -python_install_all() { - distutils-r1_python_install_all sed \ -e '1i#!/usr/bin/env python' \ "${D}/$(python_get_sitedir)"/pymol/__init__.py > "${T}"/${PN} || die + python_doscript "${T}"/${PN} +} - python_foreach_impl python_doscript "${T}"/${PN} +python_install_all() { + distutils-r1_python_install_all # These environment variables should not go in the wrapper script, or else # it will be impossible to use the PyMOL libraries from Python. |