Browse Source

[fix] brands: add variables from build env to setup.py

We have some variables in the build environment which are also needed in the
setup.py process.  Theses variables are relavant if one creates a fork with
its own branding.  We treat these variables under the term 'brands'.

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Markus Heiser 5 years ago
parent
commit
f6b29f68a1
1 changed files with 2 additions and 1 deletions
  1. 2 1
      setup.py

+ 2 - 1
setup.py

@@ -10,6 +10,7 @@ import sys
 # required to load VERSION_STRING constant
 # required to load VERSION_STRING constant
 sys.path.insert(0, './searx')
 sys.path.insert(0, './searx')
 from version import VERSION_STRING
 from version import VERSION_STRING
+import brand
 
 
 with open('README.rst') as f:
 with open('README.rst') as f:
     long_description = f.read()
     long_description = f.read()
@@ -36,7 +37,7 @@ setup(
     keywords='metasearch searchengine search web http',
     keywords='metasearch searchengine search web http',
     author='Adam Tauber',
     author='Adam Tauber',
     author_email='asciimoo@gmail.com',
     author_email='asciimoo@gmail.com',
-    url='https://github.com/asciimoo/searx',
+    url=brand.GIT_URL,
     license='GNU Affero General Public License',
     license='GNU Affero General Public License',
     packages=find_packages(exclude=["tests*"]),
     packages=find_packages(exclude=["tests*"]),
     zip_safe=False,
     zip_safe=False,