lol
at master 68 lines 2.6 kB view raw
1From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 2From: Philip Taron <philip.taron@gmail.com> 3Date: Wed, 11 Jun 2025 10:41:42 -0700 4Subject: [PATCH] setup.py: remove self-reference and DEVELOPER_MODE 5 6Signed-off-by: Philip Taron <philip.taron@gmail.com> 7--- 8 setup.py | 33 ++------------------------------- 9 1 file changed, 2 insertions(+), 31 deletions(-) 10 11diff --git a/setup.py b/setup.py 12index 00f6e9b120525d63fbc17949b2804785f1286118..b5582bcc366148d9c0a442abade65a6127ef2d3c 100755 13--- a/setup.py 14+++ b/setup.py 15@@ -26,15 +26,7 @@ from setuptools.command.test import test as TestCommand 16 17 faulthandler.enable() 18 19-basedir = os.path.abspath(os.path.dirname(sys.argv[0])) 20-DEVELOPER_MODE = os.path.exists(os.path.join(basedir, 'MANIFEST.in')) 21-if DEVELOPER_MODE: 22- print('MANIFEST.in exists, running in developer mode') 23- 24-# Add S3QL sources 25-sys.path.insert(0, os.path.join(basedir, 'src')) 26-sys.path.insert(0, os.path.join(basedir, 'util')) 27-import s3ql 28+basedir = "/build/source" 29 30 31 class pytest(TestCommand): 32@@ -52,27 +44,6 @@ def main(): 33 34 compile_args = ['-Wall', '-Wextra', '-Wconversion', '-Wsign-compare'] 35 36- # Enable all fatal warnings only when compiling from Mercurial tip. 37- # (otherwise we break forward compatibility because compilation with newer 38- # compiler may fail if additional warnings are added) 39- if DEVELOPER_MODE: 40- if os.environ.get('CI') != 'true': 41- compile_args.append('-Werror') 42- 43- # Value-changing conversions should always be explicit. 44- compile_args.append('-Werror=conversion') 45- 46- # Note that (i > -1) is false if i is unsigned (-1 will be converted to 47- # a large positive value). We certainly don't want to do this by 48- # accident. 49- compile_args.append('-Werror=sign-compare') 50- 51- # These warnings have always been harmless, and have always been due to 52- # issues in Cython code rather than S3QL. Cython itself warns if there 53- # are unused variables in .pyx code. 54- compile_args.append('-Wno-unused-parameter') 55- compile_args.append('-Wno-unused-function') 56- 57 required_pkgs = [ 58 'apsw >= 3.42.0', # https://github.com/rogerbinns/apsw/issues/459 59 'cryptography', 60@@ -88,7 +59,7 @@ def main(): 61 setuptools.setup( 62 name='s3ql', 63 zip_safe=False, 64- version=s3ql.VERSION, 65+ version="@version@", 66 description='a full-featured file system for online data storage', 67 long_description=long_desc, 68 author='Nikolaus Rath',