diff options
author | CoprDistGit <infra@openeuler.org> | 2023-04-10 13:19:06 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-04-10 13:19:06 +0000 |
commit | 1d968d3fe8021fdc80aaa906e0742c35c232a4c8 (patch) | |
tree | d9b42871d7e33c5dc8ce23595c6d0d75e6b5f19c | |
parent | 1a04c2ea793e641575bd90af4da9bd29da61fd83 (diff) |
automatic import of python-install
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-install.spec | 129 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 131 insertions, 0 deletions
@@ -0,0 +1 @@ +/install-1.3.5.tar.gz diff --git a/python-install.spec b/python-install.spec new file mode 100644 index 0000000..1a06a93 --- /dev/null +++ b/python-install.spec @@ -0,0 +1,129 @@ +%global _empty_manifest_terminate_build 0 +Name: python-install +Version: 1.3.5 +Release: 1 +Summary: Install packages from within code +License: MIT +URL: https://github.com/eugenekolo/pip-install +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/26/79/b6a13690bcde4e1fef5759f05a5e0939c110fcbc8c6e4efa6b4663ee11a5/install-1.3.5.tar.gz +BuildArch: noarch + + +%description +# install + +A package to install pip packages from within code. + +Requires Python 2.7+, 3.5+ + +Usage: +``` +import install +install.install('pkg_you_want') + +# ... after retrieving a requirements.txt from the web or somewhere else +install.install('requirements.txt', requirements=True) + +# ... need arbitary options? +install.install('my_pkg', pip_options=['--isolated'], install_options=['--no-clean', '--pre']) +``` + + + + +%package -n python3-install +Summary: Install packages from within code +Provides: python-install +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-install +# install + +A package to install pip packages from within code. + +Requires Python 2.7+, 3.5+ + +Usage: +``` +import install +install.install('pkg_you_want') + +# ... after retrieving a requirements.txt from the web or somewhere else +install.install('requirements.txt', requirements=True) + +# ... need arbitary options? +install.install('my_pkg', pip_options=['--isolated'], install_options=['--no-clean', '--pre']) +``` + + + + +%package help +Summary: Development documents and examples for install +Provides: python3-install-doc +%description help +# install + +A package to install pip packages from within code. + +Requires Python 2.7+, 3.5+ + +Usage: +``` +import install +install.install('pkg_you_want') + +# ... after retrieving a requirements.txt from the web or somewhere else +install.install('requirements.txt', requirements=True) + +# ... need arbitary options? +install.install('my_pkg', pip_options=['--isolated'], install_options=['--no-clean', '--pre']) +``` + + + + +%prep +%autosetup -n install-1.3.5 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-install -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 1.3.5-1 +- Package Spec generated @@ -0,0 +1 @@ +10033091193c176bdfb8f7e407a10256 install-1.3.5.tar.gz |