Package init
This commit is contained in:
parent
234e72386b
commit
9846e3f904
36
README.en.md
36
README.en.md
@ -1,36 +0,0 @@
|
|||||||
# python-virtualenv
|
|
||||||
|
|
||||||
#### Description
|
|
||||||
{**When you're done, you can delete the content in this README and update the file with details for others getting started with your repository**}
|
|
||||||
|
|
||||||
#### Software Architecture
|
|
||||||
Software architecture description
|
|
||||||
|
|
||||||
#### Installation
|
|
||||||
|
|
||||||
1. xxxx
|
|
||||||
2. xxxx
|
|
||||||
3. xxxx
|
|
||||||
|
|
||||||
#### Instructions
|
|
||||||
|
|
||||||
1. xxxx
|
|
||||||
2. xxxx
|
|
||||||
3. xxxx
|
|
||||||
|
|
||||||
#### Contribution
|
|
||||||
|
|
||||||
1. Fork the repository
|
|
||||||
2. Create Feat_xxx branch
|
|
||||||
3. Commit your code
|
|
||||||
4. Create Pull Request
|
|
||||||
|
|
||||||
|
|
||||||
#### Gitee Feature
|
|
||||||
|
|
||||||
1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
|
|
||||||
2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
|
|
||||||
3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
|
|
||||||
4. The most valuable open source project [GVP](https://gitee.com/gvp)
|
|
||||||
5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
|
|
||||||
6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
|
||||||
39
README.md
39
README.md
@ -1,39 +0,0 @@
|
|||||||
# python-virtualenv
|
|
||||||
|
|
||||||
#### 介绍
|
|
||||||
{**以下是码云平台说明,您可以替换此简介**
|
|
||||||
码云是 OSCHINA 推出的基于 Git 的代码托管平台(同时支持 SVN)。专为开发者提供稳定、高效、安全的云端软件开发协作平台
|
|
||||||
无论是个人、团队、或是企业,都能够用码云实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)}
|
|
||||||
|
|
||||||
#### 软件架构
|
|
||||||
软件架构说明
|
|
||||||
|
|
||||||
|
|
||||||
#### 安装教程
|
|
||||||
|
|
||||||
1. xxxx
|
|
||||||
2. xxxx
|
|
||||||
3. xxxx
|
|
||||||
|
|
||||||
#### 使用说明
|
|
||||||
|
|
||||||
1. xxxx
|
|
||||||
2. xxxx
|
|
||||||
3. xxxx
|
|
||||||
|
|
||||||
#### 参与贡献
|
|
||||||
|
|
||||||
1. Fork 本仓库
|
|
||||||
2. 新建 Feat_xxx 分支
|
|
||||||
3. 提交代码
|
|
||||||
4. 新建 Pull Request
|
|
||||||
|
|
||||||
|
|
||||||
#### 码云特技
|
|
||||||
|
|
||||||
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
|
|
||||||
2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com)
|
|
||||||
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目
|
|
||||||
4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目
|
|
||||||
5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
|
|
||||||
6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
|
||||||
16
check-exec_dir.patch
Normal file
16
check-exec_dir.patch
Normal file
@ -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
|
||||||
110
python-virtualenv.spec
Normal file
110
python-virtualenv.spec
Normal file
@ -0,0 +1,110 @@
|
|||||||
|
Name: python-virtualenv
|
||||||
|
Version: 16.0.0
|
||||||
|
Release: 6
|
||||||
|
Summary: A tool to create isolated Python environments
|
||||||
|
License: MIT
|
||||||
|
URL: http://pypi.python.org/pypi/virtualenv
|
||||||
|
Source0: http://pypi.python.org/packages/source/v/virtualenv/virtualenv-%{version}.tar.gz
|
||||||
|
|
||||||
|
Patch0: check-exec_dir.patch
|
||||||
|
Patch1: python26.patch
|
||||||
|
Patch2: rpm-wheels.patch
|
||||||
|
|
||||||
|
BuildArch: noarch
|
||||||
|
BuildRequires: git-core python2-devel python3-devel python3-sphinx
|
||||||
|
BuildRequires: python-pip-wheel python-setuptools-wheel python-wheel-wheel
|
||||||
|
|
||||||
|
%description
|
||||||
|
Virtualenv is a tool to create isolated Python environments. Since Python
|
||||||
|
3.3, a subset of it has been integrated into the standard library under
|
||||||
|
the venv module. Note though, that the venv module does not offer all
|
||||||
|
features of this library (e.g. cannot create bootstrap scripts, cannot
|
||||||
|
create virtual environments for other python versions than the host python,
|
||||||
|
not relocatable, etc.). Tools in general as such still may prefer using
|
||||||
|
virtualenv for its ease of upgrading (via pip), unified handling of different
|
||||||
|
Python versions and some more advanced features.
|
||||||
|
|
||||||
|
%package -n python2-virtualenv
|
||||||
|
Summary: Tool to create isolated Python environments
|
||||||
|
Requires: python2-setuptools python2-devel python2-virtualenv-python26
|
||||||
|
%{?python_provide:%python_provide python2-virtualenv}
|
||||||
|
Requires: python-pip-wheel python-setuptools-wheel python-wheel-wheel
|
||||||
|
|
||||||
|
%description -n python2-virtualenv
|
||||||
|
virtualenv support in python2.
|
||||||
|
|
||||||
|
%package -n python2-virtualenv-python26
|
||||||
|
Summary: Extra bits of virtuelenv only needed with Python 2.6
|
||||||
|
Requires: python2-virtualenv = %{version}-%{release}
|
||||||
|
%{?python_provide:%python_provide python2-virtualenv-python26}
|
||||||
|
Provides: bundled(python2dist(argparse)) = 1.4.0
|
||||||
|
Provides: bundled(python2dist(pip)) = 9.0.3
|
||||||
|
Provides: bundled(python2dist(setuptools)) = 36.8.0
|
||||||
|
Provides: bundled(python2dist(wheel)) = 0.29.0
|
||||||
|
|
||||||
|
%description -n python2-virtualenv-python26
|
||||||
|
Tools that support for python2.6 virtual environments with python2.
|
||||||
|
|
||||||
|
%package -n python3-virtualenv
|
||||||
|
Summary: Tool to create isolated Python environments
|
||||||
|
Requires: python3-setuptools python3-devel python3-virtualenv-python26
|
||||||
|
%{?python_provide:%python_provide python3-virtualenv}
|
||||||
|
Conflicts: python2-virtualenv < 16.0.0-5
|
||||||
|
Provides: virtualenv = %{version}-%{release}
|
||||||
|
Requires: python-pip-wheel python-setuptools-wheel python-wheel-wheel
|
||||||
|
|
||||||
|
%description -n python3-virtualenv
|
||||||
|
virtualenv support in python3.
|
||||||
|
|
||||||
|
%package -n python3-virtualenv-python26
|
||||||
|
Summary: Extra bits of virtuelenv only needed with Python 2.6
|
||||||
|
Requires: python3-virtualenv = %{version}-%{release}
|
||||||
|
%{?python_provide:%python_provide python3-virtualenv-python26}
|
||||||
|
Provides: bundled(python2dist(argparse)) = 1.4.0
|
||||||
|
Provides: bundled(python2dist(pip)) = 9.0.3
|
||||||
|
Provides: bundled(python2dist(setuptools)) = 36.8.0
|
||||||
|
Provides: bundled(python2dist(wheel)) = 0.29.0
|
||||||
|
|
||||||
|
%description -n python3-virtualenv-python26
|
||||||
|
Tools that support for python2.6 virtual environments with python3.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n virtualenv-%{version} -p1 -Sgit
|
||||||
|
sed -i -e "1s|#!/usr/bin/env python||" virtualenv.py
|
||||||
|
|
||||||
|
%build
|
||||||
|
%py2_build
|
||||||
|
%py3_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
%py2_install
|
||||||
|
%py3_install
|
||||||
|
|
||||||
|
%files -n python2-virtualenv
|
||||||
|
%license LICENSE.txt
|
||||||
|
%doc docs/*rst PKG-INFO AUTHORS.txt
|
||||||
|
%{python2_sitelib}/virtualenv.py*
|
||||||
|
%dir %{python2_sitelib}/virtualenv_support/
|
||||||
|
%{python2_sitelib}/virtualenv_support/__init__.py*
|
||||||
|
%{python2_sitelib}/virtualenv-*.egg-info/
|
||||||
|
|
||||||
|
%files -n python2-virtualenv-python26
|
||||||
|
%{python2_sitelib}/virtualenv_support/*.whl
|
||||||
|
|
||||||
|
%files -n python3-virtualenv
|
||||||
|
%license LICENSE.txt
|
||||||
|
%doc docs/*rst PKG-INFO AUTHORS.txt
|
||||||
|
%{_bindir}/virtualenv
|
||||||
|
%{python3_sitelib}/virtualenv.py
|
||||||
|
%dir %{python3_sitelib}/virtualenv_support/
|
||||||
|
%{python3_sitelib}/virtualenv_support/__init__.py
|
||||||
|
%{python3_sitelib}/virtualenv_support/__pycache__/
|
||||||
|
%{python3_sitelib}/virtualenv-*.egg-info/
|
||||||
|
%{python3_sitelib}/__pycache__/*
|
||||||
|
|
||||||
|
%files -n python3-virtualenv-python26
|
||||||
|
%{python3_sitelib}/virtualenv_support/*.whl
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Mon Dec 9 2019 openEuler Buildteam <buildteam@openeuler.org> - 16.0.0-6
|
||||||
|
- Package init
|
||||||
37460
python26.patch
Normal file
37460
python26.patch
Normal file
File diff suppressed because it is too large
Load Diff
14
rpm-wheels.patch
Normal file
14
rpm-wheels.patch
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
diff --git a/virtualenv.py b/virtualenv.py
|
||||||
|
index 2ad2695..a0ddfaf 100755
|
||||||
|
--- a/virtualenv.py
|
||||||
|
+++ b/virtualenv.py
|
||||||
|
@@ -400,6 +400,9 @@ def _find_file(filename, dirs):
|
||||||
|
def file_search_dirs():
|
||||||
|
here = os.path.dirname(os.path.abspath(__file__))
|
||||||
|
dirs = [here, join(here, 'virtualenv_support')]
|
||||||
|
+ if sys.version_info >= (2, 7):
|
||||||
|
+ # we don't insert on 2.6 because the wheels there are not compatible
|
||||||
|
+ dirs.insert(1, '/usr/share/python-wheels')
|
||||||
|
if os.path.splitext(os.path.dirname(__file__))[0] != 'virtualenv':
|
||||||
|
# Probably some boot script; just in case virtualenv is installed...
|
||||||
|
try:
|
||||||
BIN
virtualenv-16.0.0.tar.gz
Normal file
BIN
virtualenv-16.0.0.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user