From: W. Trevor King Date: Fri, 12 Aug 2016 19:53:51 +0000 (-0700) Subject: thumbor-9999.ebuild: Patch 'argparse' dependency out of setup.py X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7580ca5c21457fa4f88448cf3b1219a952aee33a;p=wtk-overlay.git thumbor-9999.ebuild: Patch 'argparse' dependency out of setup.py Details in the patch header. --- diff --git a/files/9999-0001-setup.py-Remove-argparse-dependency.patch b/files/9999-0001-setup.py-Remove-argparse-dependency.patch new file mode 100644 index 0000000..479d610 --- /dev/null +++ b/files/9999-0001-setup.py-Remove-argparse-dependency.patch @@ -0,0 +1,48 @@ +From b95c44e51fb19ba83c0bcdc07e76392f52f9a700 Mon Sep 17 00:00:00 2001 +Message-Id: +From: "W. Trevor King" +Date: Fri, 12 Aug 2016 12:42:18 -0700 +Subject: [PATCH] setup.py: Remove argparse dependency + +Python 2.7 has argparse built in [1], so we don't need to explicitly +list the dependency. And if we do list it, 'emerge thumbor' crashes +with: + + * python2_7: running distutils-r1_run_phase python_install_all + Traceback (most recent call last): + File "/var/tmp/portage/dev-python/thumbor-9999/image//usr/lib/python-exec/python2.7/thumbor-config", line 5, in + from pkg_resources import load_entry_point + File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", line 3080, in + @_call_aside + File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", line 3066, in _call_aside + f(*args, **kwargs) + File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", line 3093, in _initialize_master_working_set + working_set = WorkingSet._build_master() + File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", line 651, in _build_master + ws.require(__requires__) + File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", line 952, in require + needed = self.resolve(parse_requirements(requirements)) + File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", line 839, in resolve + raise DistributionNotFound(req, requirers) + pkg_resources.DistributionNotFound: The 'argparse' distribution was not found and is required by thumbor + +[1]: https://docs.python.org/2.7/library/argparse.html +--- + setup.py | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/setup.py b/setup.py +index 751157a..6e77273 100644 +--- a/setup.py ++++ b/setup.py +@@ -103,7 +103,6 @@ http:///300x200/smart/s.glbimg.com/et/bb/f/original/2011/03/24/V + "statsd>=3.0.1", + "libthumbor>=1.3.2", + "futures", +- "argparse", + "pytz", + ], + +-- +2.1.0.60.g85f0837 + diff --git a/thumbor-9999.ebuild b/thumbor-9999.ebuild index 5dda4c0..03cea23 100644 --- a/thumbor-9999.ebuild +++ b/thumbor-9999.ebuild @@ -62,6 +62,8 @@ DEPEND=" ) " +PATCHES=( "${FILESDIR}/${PV}-0001-setup.py-Remove-argparse-dependency.patch" ) + pkg_setup() { P_HOME="${EPREFIX}/var/lib/${PN}" ebegin "Creating ${PN} user and group"