|
@@ -0,0 +1,110 @@
|
|
1
|
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
2
|
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+<html xmlns="http://www.w3.org/1999/xhtml">
|
|
6
|
+ <head>
|
|
7
|
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
8
|
+
|
|
9
|
+ <title>Introducing Python3 support — searx 0.11.0 documentation</title>
|
|
10
|
+
|
|
11
|
+ <link rel="stylesheet" href="../_static/style.css" type="text/css" />
|
|
12
|
+ <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
|
|
13
|
+
|
|
14
|
+ <script type="text/javascript">
|
|
15
|
+ var DOCUMENTATION_OPTIONS = {
|
|
16
|
+ URL_ROOT: '../',
|
|
17
|
+ VERSION: '0.11.0',
|
|
18
|
+ COLLAPSE_INDEX: false,
|
|
19
|
+ FILE_SUFFIX: '.html',
|
|
20
|
+ HAS_SOURCE: true
|
|
21
|
+ };
|
|
22
|
+ </script>
|
|
23
|
+ <script type="text/javascript" src="../_static/jquery.js"></script>
|
|
24
|
+ <script type="text/javascript" src="../_static/underscore.js"></script>
|
|
25
|
+ <script type="text/javascript" src="../_static/doctools.js"></script>
|
|
26
|
+ <link rel="index" title="Index" href="../genindex.html" />
|
|
27
|
+ <link rel="search" title="Search" href="../search.html" />
|
|
28
|
+ <link rel="top" title="searx 0.11.0 documentation" href="../index.html" />
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+ <link media="only screen and (max-device-width: 480px)" href="../_static/small_flask.css" type= "text/css" rel="stylesheet" />
|
|
32
|
+ <meta name="viewport" content="width=device-width, initial-scale=0.9, maximum-scale=0.9">
|
|
33
|
+
|
|
34
|
+ </head>
|
|
35
|
+ <body role="document">
|
|
36
|
+
|
|
37
|
+ <div class="document">
|
|
38
|
+ <div class="documentwrapper">
|
|
39
|
+ <div class="bodywrapper">
|
|
40
|
+ <div class="body" role="main">
|
|
41
|
+
|
|
42
|
+ <div class="section" id="introducing-python3-support">
|
|
43
|
+<h1>Introducing Python3 support<a class="headerlink" href="#introducing-python3-support" title="Permalink to this headline">¶</a></h1>
|
|
44
|
+<p>As most operation systems are coming with Python3 installed by default. So it is time for searx to support Python3. But don’t worry support of Python2.7 won’t be dropped.</p>
|
|
45
|
+<a class="reference internal image-reference" href="../_images/searxpy3.png"><img alt="hurray" class="align-center" src="../_images/searxpy3.png" style="width: 510.5px; height: 116.0px;" /></a>
|
|
46
|
+<div class="section" id="how-to-run-searx-using-python3">
|
|
47
|
+<h2>How to run searx using Python3<a class="headerlink" href="#how-to-run-searx-using-python3" title="Permalink to this headline">¶</a></h2>
|
|
48
|
+<p>Please make sure that you run at least Python3.5.</p>
|
|
49
|
+<p>To run searx, first a Python3 virtualenv should be created. After entering the virtualenv,
|
|
50
|
+dependencies must be installed. Then run searx with python3 instead of the usual python command.</p>
|
|
51
|
+<div class="code sh highlight-default"><div class="highlight"><pre><span></span><span class="n">virtualenv</span> <span class="o">-</span><span class="n">p</span> <span class="n">python3</span> <span class="n">venv3</span>
|
|
52
|
+<span class="n">source</span> <span class="n">venv3</span><span class="o">/</span><span class="nb">bin</span><span class="o">/</span><span class="n">activate</span>
|
|
53
|
+<span class="n">pip3</span> <span class="n">install</span> <span class="o">-</span><span class="n">r</span> <span class="n">requirements</span><span class="o">.</span><span class="n">txt</span>
|
|
54
|
+<span class="n">python3</span> <span class="n">searx</span><span class="o">/</span><span class="n">webapp</span><span class="o">.</span><span class="n">py</span>
|
|
55
|
+</pre></div>
|
|
56
|
+</div>
|
|
57
|
+<p>If you want to run searx using Python2.7, you don’t have to do anything differently as before.</p>
|
|
58
|
+</div>
|
|
59
|
+<div class="section" id="fun-facts">
|
|
60
|
+<h2>Fun facts<a class="headerlink" href="#fun-facts" title="Permalink to this headline">¶</a></h2>
|
|
61
|
+<ul class="simple">
|
|
62
|
+<li>115 files were changed when implementing the support for both Python versions.</li>
|
|
63
|
+<li>All of the dependencies was compatible except for the robotframework used for browser tests. Thus, these tests were migrated to splinter. So from now on both versions are being tested on Travis and can be tested locally.</li>
|
|
64
|
+</ul>
|
|
65
|
+</div>
|
|
66
|
+<div class="section" id="if-you-found-bugs">
|
|
67
|
+<h2>If you found bugs...<a class="headerlink" href="#if-you-found-bugs" title="Permalink to this headline">¶</a></h2>
|
|
68
|
+<p>...please open an issue on <a class="reference external" href="https://github.com/asciimoo/searx/issues">GitHub</a>. Make sure that you mention your Python version in your issue,
|
|
69
|
+so we can investigate it properly.</p>
|
|
70
|
+</div>
|
|
71
|
+<div class="section" id="acknowledgement">
|
|
72
|
+<h2>Acknowledgement<a class="headerlink" href="#acknowledgement" title="Permalink to this headline">¶</a></h2>
|
|
73
|
+<p>This development was sponsored by <a class="reference external" href="https://nlnet.nl/">NLnet Foundation</a>.</p>
|
|
74
|
+<div class="line-block">
|
|
75
|
+<div class="line">Happy hacking.</div>
|
|
76
|
+<div class="line">kvch // 2017.05.13 22:57</div>
|
|
77
|
+</div>
|
|
78
|
+</div>
|
|
79
|
+</div>
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+ </div>
|
|
83
|
+ </div>
|
|
84
|
+ </div>
|
|
85
|
+ <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
|
|
86
|
+ <div class="sphinxsidebarwrapper"><div class="sidebar_container body">
|
|
87
|
+<h1>Searx</h1>
|
|
88
|
+<ul>
|
|
89
|
+ <li><a href="../index.html">Home</a></li>
|
|
90
|
+ <li><a href="https://github.com/asciimoo/searx">Source</a></li>
|
|
91
|
+ <li><a href="blog.html">Blog</a></li>
|
|
92
|
+ <li><a href="https://github.com/asciimoo/searx/wiki">Wiki</a></li>
|
|
93
|
+ <li><a href="https://github.com/asciimoo/searx/wiki/Searx-instances">Public instances</a></li>
|
|
94
|
+</ul>
|
|
95
|
+<hr />
|
|
96
|
+<ul>
|
|
97
|
+ <li><a href="https://twitter.com/Searx_engine">Twitter</a></li>
|
|
98
|
+ <li><a href="https://flattr.com/submit/auto?user_id=asciimoo&url=https://github.com/asciimoo/searx&title=searx&language=&tags=github&category=software">Flattr</a></li>
|
|
99
|
+ <li><a href="https://gratipay.com/searx">Gratipay</a></li>
|
|
100
|
+</ul>
|
|
101
|
+</div>
|
|
102
|
+ </div>
|
|
103
|
+ </div>
|
|
104
|
+ <div class="clearer"></div>
|
|
105
|
+ </div>
|
|
106
|
+ <div class="footer">
|
|
107
|
+ © Copyright 2015-2016, Adam Tauber.
|
|
108
|
+ </div>
|
|
109
|
+ </body>
|
|
110
|
+</html>
|