123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. Introducing Python3 support
  2. ===========================
  3. 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.
  4. .. image:: hurray.png
  5. :scale: 50 %
  6. :alt: hurray
  7. :align: center
  8. How to run searx using Python3
  9. ------------------------------
  10. Please make sure that you run at least Python3.5.
  11. To run searx, first a Python3 virtualenv should be created. After entering the virtualenv,
  12. dependencies must be installed. Then run searx with python3 instead of the usual python command.
  13. .. code:: sh
  14. virtualenv -p python3 venv3
  15. source venv3/bin/activate
  16. pip3 install -r requirements.txt
  17. python3 searx/webapp.py
  18. If you want to run searx using Python2.7, you don't have to do anything differently as before.
  19. Fun facts
  20. ---------
  21. - 115 files were changed when implementing the support for both Python versions.
  22. - 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.
  23. If you found bugs...
  24. --------------------
  25. ...please open an issue on `GitHub`_. Make sure that you mention your Python version in your issue,
  26. so we can investigate it properly.
  27. .. _GitHub: https://github.com/asciimoo/searx/issues
  28. Acknowledgement
  29. ---------------
  30. This development was sponsored by `NLnet Foundation`_.
  31. .. _NLnet Foundation: https://nlnet.nl/
  32. | Happy hacking.
  33. | kvch // 2017.05.13 22:57