Skip to content

Commit

Permalink
remove console_scripts (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
makslevental authored Dec 17, 2023
1 parent 9bc0b1a commit 6541ce9
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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",
],
},
)

0 comments on commit 6541ce9

Please sign in to comment.