From e1279155b48e18aedb9a7af4fff61afc71891e8e Mon Sep 17 00:00:00 2001 From: hiaselhans Date: Sun, 26 Nov 2023 21:33:23 +0100 Subject: [PATCH] fix stubgen --- setup.py | 7 ++----- src/version.hpp | 2 +- stubs.py | 1 - 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/setup.py b/setup.py index f410017..b4b5a89 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ from setuptools.command.install import install -version = "0.2.5" +version = "0.2.6" DEBUG = False if "--debug" in sys.argv: @@ -104,10 +104,7 @@ def build_extension(self, ext): if not os.path.exists(self.build_lib): stubgen_path = self.build_temp - try: - subprocess.check_call([sys.executable, 'stubs.py', stubgen_path]) - except subprocess.CalledProcessError: - print("no mypy found") + subprocess.check_call([sys.executable, 'stubs.py', stubgen_path], shell=True) diff --git a/src/version.hpp b/src/version.hpp index 3331dc4..0dedc1e 100644 --- a/src/version.hpp +++ b/src/version.hpp @@ -1,5 +1,5 @@ #pragma once namespace euklid { - const char* version = "0.2.5"; + const char* version = "0.2.6"; } diff --git a/stubs.py b/stubs.py index 92738aa..b28d5dd 100644 --- a/stubs.py +++ b/stubs.py @@ -1,4 +1,3 @@ -import imp from importlib.resources import path import sys import os