From 08c7c386330057b62507f4a935901aecab1e7e2c Mon Sep 17 00:00:00 2001 From: Salvo 'LtWorf' Tomaselli Date: Sat, 30 Jul 2022 00:52:36 +0200 Subject: [PATCH 1/2] Use cython in setup --- gensetup.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gensetup.py b/gensetup.py index c4e9817..363d96a 100755 --- a/gensetup.py +++ b/gensetup.py @@ -52,7 +52,11 @@ def load_version(): f'''#!/usr/bin/python3 # This file is auto generated. Do not modify from setuptools import setup + +from Cython.Build import cythonize + setup( + ext_modules = cythonize(["typedload/dataloader.py", "typedload/typechecks.py", "typedload/exceptions.py"]), name='typedload', version={load_version()!r}, description='{DESCRIPTION}', From e728813bf5d706afc66eea003e8b1de1c6969fd6 Mon Sep 17 00:00:00 2001 From: Salvo 'LtWorf' Tomaselli Date: Tue, 4 Jul 2023 20:18:08 +0200 Subject: [PATCH 2/2] Use env python --- gensetup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gensetup.py b/gensetup.py index 363d96a..b9c67be 100755 --- a/gensetup.py +++ b/gensetup.py @@ -49,7 +49,7 @@ def load_version(): if argv[1] == '--setup.py': with open('setup.py', 'wt') as f: print( -f'''#!/usr/bin/python3 +f'''#!/usr/bin/env python3 # This file is auto generated. Do not modify from setuptools import setup