python3-virtualenv package added
Signed-off-by: basebuilder_pel7x64builder0 <basebuilder@powerel.org>master
parent
cd2a396c0f
commit
b8171a64ff
|
@ -0,0 +1,16 @@
|
|||
diff --git a/virtualenv.py b/virtualenv.py
|
||||
index c4e3bd5..89b8863 100755
|
||||
--- a/virtualenv.py
|
||||
+++ b/virtualenv.py
|
||||
@@ -1181,8 +1181,9 @@ def install_python(home_dir, lib_dir, inc_dir, bin_dir, site_packages, clear, sy
|
||||
exec_dir = join(sys.exec_prefix, 'Lib')
|
||||
else:
|
||||
exec_dir = join(sys.exec_prefix, 'lib', py_version)
|
||||
- for fn in os.listdir(exec_dir):
|
||||
- copyfile(join(exec_dir, fn), join(lib_dir, fn), symlink)
|
||||
+ if os.path.isdir(exec_dir):
|
||||
+ for fn in os.listdir(exec_dir):
|
||||
+ copyfile(join(exec_dir, fn), join(lib_dir, fn), symlink)
|
||||
|
||||
if is_jython:
|
||||
# Jython has either jython-dev.jar and javalib/ dir, or just
|
|
@ -0,0 +1,73 @@
|
|||
Name: python3-virtualenv
|
||||
Version: 15.1.0
|
||||
Release: 1%{?dist}
|
||||
Summary: Tool to create isolated Python environments
|
||||
Group: Development/Languages
|
||||
License: MIT
|
||||
URL: https://pypi.python.org/pypi/virtualenv
|
||||
Source0: https://files.pythonhosted.org/packages/source/v/virtualenv/virtualenv-%{version}.tar.gz
|
||||
# virtualenv -p "/usr/bin/python3" venv fails if there are not packages installed
|
||||
# under /usr/local/lib/pythonX.Y/site-packages. Check if exec_dir exists before
|
||||
# listing it's content.
|
||||
Patch0: check-exec_dir.patch
|
||||
BuildArch: noarch
|
||||
BuildRequires: python3-devel
|
||||
# Not yet packaged
|
||||
#BuildRequires: python%{python3_pkgversion}-sphinx
|
||||
BuildRequires: python-sphinx
|
||||
|
||||
|
||||
%description
|
||||
virtualenv is a tool to create isolated Python environments. virtualenv
|
||||
is a successor to workingenv, and an extension of virtual-python. It is
|
||||
written by Ian Bicking, and sponsored by the Open Planning Project. It is
|
||||
licensed under an MIT-style permissive license.
|
||||
|
||||
|
||||
%package doc
|
||||
Summary: Documentation for python virtualenv
|
||||
%description doc
|
||||
Documentation for python virtualenv.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n virtualenv-%{version}
|
||||
%{__sed} -i -e "1s|#!/usr/bin/env python||" virtualenv.py
|
||||
%patch0 -p1
|
||||
|
||||
|
||||
%build
|
||||
%{__python3} setup.py build
|
||||
#{__python3} setup.py build_sphinx
|
||||
#%{__python2} setup.py build_sphinx
|
||||
rm -f build/sphinx/html/.buildinfo
|
||||
|
||||
|
||||
%install
|
||||
%{__python3} setup.py install --optimize 2 --root %{buildroot}
|
||||
# rename binaries to use python3
|
||||
mv %{buildroot}/%{_bindir}/virtualenv %{buildroot}/%{_bindir}/py3-virtualenv
|
||||
# The versioned 3.x script was removed from upstream. Add it back.
|
||||
cp %{buildroot}/%{_bindir}/py3-virtualenv %{buildroot}/%{_bindir}/virtualenv-%{python3_version}
|
||||
cp %{buildroot}/%{_bindir}/py3-virtualenv %{buildroot}/%{_bindir}/virtualenv-3
|
||||
|
||||
%files
|
||||
%license LICENSE.txt
|
||||
%doc docs/*rst PKG-INFO AUTHORS.txt
|
||||
%{_bindir}/py3-virtualenv
|
||||
%{_bindir}/virtualenv-3
|
||||
%{_bindir}/virtualenv-%{python3_version}
|
||||
%{python3_sitelib}/virtualenv.py
|
||||
%{python3_sitelib}/virtualenv_support/
|
||||
%{python3_sitelib}/virtualenv-*.egg-info
|
||||
%{python3_sitelib}/__pycache__/*
|
||||
|
||||
%files doc
|
||||
#%doc build/sphinx/*
|
||||
|
||||
%changelog
|
||||
* Mon Aug 14 2017 Orion Poplawski <orion@cora.nwra.com> - 15.1.0-1
|
||||
- Update to 15.1.0
|
||||
|
||||
* Fri Mar 10 2017 Orion Poplawski <orion@cora.nwra.com> - 15.0.3-1
|
||||
- Initial EPEL package
|
Loading…
Reference in New Issue