Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %define module virtualenv-clone
- Name: python-%{module}
- Version: 0.2.4
- Release: %mkrel 1
- Summary: Script to clone virtualenvs
- License: MIT
- Group: Development/Python
- Url: http://github.com/edwardgeorge/virtualenv-clone
- Source: virtualenv-clone-%{version}.tar.bz2
- BuildArch: noarch
- BuildRequires: python-devel
- BuildRequires: python-setuptools
- BuildRequires: python-virtualenv
- Requires: python-virtualenv
- %description
- virtualenv cloning script.
- A script for cloning a non-relocatable virtualenv.
- Virtualenv provides a way to make virtualenv's relocatable which could then
- be copied as we wanted. However making a virtualenv relocatable this way
- breaks the no-site-packages isolation of the virtualenv as well as other
- aspects that come with relative paths and '/usr/bin/env' shebangs that may
- be undesirable.
- Also, the .pth and .egg-link rewriting doesn't seem to work as intended.
- This attempts to overcome these issues and provide a way to easily clone an
- existing virtualenv.
- #-----------------------------------------------------------
- %package -n python3-%{module}
- Summary: Script to clone virtualenvs
- Group: Development/Python
- BuildArch: noarch
- BuildRequires: python3-devel
- BuildRequires: python3-setuptools
- BuildRequires: python3-virtualenv
- Requires: python3-virtualenv
- %description -n python3-%{module}
- virtualenv cloning script.
- A script for cloning a non-relocatable virtualenv.
- Virtualenv provides a way to make virtualenv's relocatable which could then
- be copied as we wanted. However making a virtualenv relocatable this way
- breaks the no-site-packages isolation of the virtualenv as well as other
- aspects that come with relative paths and '/usr/bin/env' shebangs that may
- be undesirable.
- Also, the .pth and .egg-link rewriting doesn't seem to work as intended.
- This attempts to overcome these issues and provide a way to easily clone an
- existing virtualenv.
- This is the Python 3 build of %{module}.
- #-----------------------------------------------------------
- %prep
- %setup -q -n %{module}-%{version}
- cp -a . %{py3dir}
- %build
- pushd %{py3dir}
- %{__python3} setup.py build
- popd
- %{__python} setup.py build
- %install
- pushd %{py3dir}
- %{__python3} setup.py install --root=%{buildroot} --skip-build
- mv %{buildroot}%{_bindir}/virtualenv-clone %{buildroot}%{_bindir}/python3-virtualenv-clone
- popd
- %{__python} setup.py install --root=%{buildroot} --skip-build
- %files
- %{python_sitelib}/
- %{_bindir}/virtualenv-clone
- %files -n python3-%{module}
- %{python3_sitelib}/
- %{_bindir}/python3-virtualenv-clone
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement