From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hartmut Goebel Subject: Re: packaging the meta-searchenging searx fails at python-requests[socks] Date: Sun, 8 Jan 2017 18:05:22 +0100 Message-ID: <7cf2ed8f-6dbb-3f87-1285-c7dcf51b754f@crazy-compilers.com> References: <877f66sx5x.fsf@wasp.i-did-not-set--mail-host-address--so-tickle-me> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------FFB353C766E9266FD1BE8FD8" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60198) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cQGuT-00035i-3O for guix-devel@gnu.org; Sun, 08 Jan 2017 12:05:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cQGuO-0004ih-Ke for guix-devel@gnu.org; Sun, 08 Jan 2017 12:05:32 -0500 Received: from mail-out.m-online.net ([212.18.0.9]:47367) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cQGuO-0004iS-9y for guix-devel@gnu.org; Sun, 08 Jan 2017 12:05:28 -0500 In-Reply-To: <877f66sx5x.fsf@wasp.i-did-not-set--mail-host-address--so-tickle-me> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: ng0 , guix-devel@gnu.org This is a multi-part message in MIME format. --------------FFB353C766E9266FD1BE8FD8 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Hi ng0, well, you were caught in a pitfall about setup.py vs. requirements.txt. requirements.txt files are only for helping to setup a reproducible environment.The idea is that one dumps her environment using "pip freeze …" and reinstalls it using "pip install -r requirements.txt". So requirements.txt only describes some environment used for building or testing. The actual requirements specification of a package are defined in the setup.py. And in your case, here lays the problem: requests's setup.py says:[1]: 'socks': ['PySocks>=1.5.6, !=1.5.7'], So searchx's requirement "requests[socks]" is not met if PySocks==1.5.7 is installed. [1] HTH -- Regards Hartmut Goebel | Hartmut Goebel | h.goebel@crazy-compilers.com | | www.crazy-compilers.com | compilers which you thought are impossible | --------------FFB353C766E9266FD1BE8FD8 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit
Hi ng0,

well, you were caught in a pitfall about setup.py vs. requirements.txt.

requirements.txt files are only for helping to setup a reproducible environment.The idea is that one dumps her environment using "pip freeze …" and reinstalls it using "pip install -r requirements.txt". So requirements.txt only describes some environment used for building or testing.

The actual requirements specification of a package are defined in the setup.py.

And in your case, here lays the problem: requests's setup.py says:[1]:

   'socks': ['PySocks>=1.5.6, !=1.5.7'],

So searchx's requirement "requests[socks]" is not met if PySocks==1.5.7 is installed.

[1] <https://github.com/kennethreitz/requests/blob/master/setup.py#L98>


HTH
-- 
Regards
Hartmut Goebel

| Hartmut Goebel          | h.goebel@crazy-compilers.com               |
| www.crazy-compilers.com | compilers which you thought are impossible |
--------------FFB353C766E9266FD1BE8FD8--