From 6541ce901844082f8fd273fda87268deb16c3d7d Mon Sep 17 00:00:00 2001 From: Maksim Levental Date: Sun, 17 Dec 2023 16:59:28 -0600 Subject: [PATCH] remove console_scripts (#32) --- setup.py | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/setup.py b/setup.py index 2d8e9b0..d7f92bb 100644 --- a/setup.py +++ b/setup.py @@ -4,10 +4,10 @@ from setuptools import setup # TODO: find from extras maybe -HOST_MLIR_PYTHON_PACKAGE_PREFIX = os.environ.get("HOST_MLIR_PYTHON_PACKAGE_PREFIX", "mlir") -PACKAGE_NAME = ( - f"{HOST_MLIR_PYTHON_PACKAGE_PREFIX.replace('.', '-').replace('_', '-')}-python-utils" +HOST_MLIR_PYTHON_PACKAGE_PREFIX = os.environ.get( + "HOST_MLIR_PYTHON_PACKAGE_PREFIX", "mlir" ) +PACKAGE_NAME = f"{HOST_MLIR_PYTHON_PACKAGE_PREFIX.replace('.', '-').replace('_', '-')}-python-utils" def load_requirements(fname): @@ -33,10 +33,4 @@ def load_requirements(fname): # lhs is package namespace, rhs is path (relative to this setup.py) f"{HOST_MLIR_PYTHON_PACKAGE_PREFIX}.utils": "mlir/utils", }, - entry_points={ - "console_scripts": [ - f"{PACKAGE_NAME}-generate-trampolines = {HOST_MLIR_PYTHON_PACKAGE_PREFIX}.utils._configuration:generate_trampolines.generate_trampolines", - f"{PACKAGE_NAME}-generate-all-upstream-trampolines = {HOST_MLIR_PYTHON_PACKAGE_PREFIX}.utils._configuration:generate_trampolines.generate_all_upstream_trampolines", - ], - }, )