unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* packaging the meta-searchenging searx fails at python-requests[socks]
@ 2017-01-07 15:32 ng0
  2017-01-08 17:05 ` Hartmut Goebel
  0 siblings, 1 reply; 2+ messages in thread
From: ng0 @ 2017-01-07 15:32 UTC (permalink / raw)
  To: guix-devel

Hi,

I have messed up my old searx branch and started new, visible
here <https://pagure.io/guix-dev/commits/searx2> where you can
also download the individual commits as patches etc.

The python package definitions probably need to be cleaned up,
please do no comment on the parts of the searx package which
include a long commented section, I am aware of it and will clean
it up before the next run, ideally I will add the dependencies
and make it run at least one, if not all, optional tests. My
problem is of a different nature right now.


I am stuck with getting it to find python-requests.
requirements.txt of searx includes this line[0]:

requests[socks]==2.12.4

which should mean, build requests with propagated PySocks (socks)
input. Okay, I have tried to add an modified PySocks which is
more or less active maintained but is one version ahead of the
version defined by requests here[1]:

PySocks==1.5.6

Where I am packaging instead PySocks 1.5.7:
https://pagure.io/guix-dev/c/7a2c54bd29b3cdea183919aad837cf71552d0d88?branch=searx2

I'm not sure what lead me to packaging of PySocks in september.
I've tried to patch the requirements.txt to allow a different (or
all) PySocks versions but this didn't work out.

[0]: https://github.com/asciimoo/searx/blob/master/requirements.txt
[1]: https://github.com/kennethreitz/requests/blob/master/requirements.txt
-- 
♥Ⓐ  ng0 -- https://www.inventati.org/patternsinthechaos/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: packaging the meta-searchenging searx fails at python-requests[socks]
  2017-01-07 15:32 packaging the meta-searchenging searx fails at python-requests[socks] ng0
@ 2017-01-08 17:05 ` Hartmut Goebel
  0 siblings, 0 replies; 2+ messages in thread
From: Hartmut Goebel @ 2017-01-08 17:05 UTC (permalink / raw)
  To: ng0, guix-devel

[-- Attachment #1: Type: text/plain, Size: 906 bytes --]

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 |


[-- Attachment #2: Type: text/html, Size: 1843 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-01-08 17:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-07 15:32 packaging the meta-searchenging searx fails at python-requests[socks] ng0
2017-01-08 17:05 ` Hartmut Goebel

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).