mirror of
https://github.com/google/go-jsonnet.git
synced 2025-08-07 14:57:24 +02:00
Fix compatibility with setuptools 72
This commit is contained in:
parent
7a714b9bf5
commit
fe1d35d61e
10
setup.py
10
setup.py
@ -16,7 +16,6 @@ import os
|
||||
from setuptools import setup
|
||||
from setuptools import Extension
|
||||
from setuptools.command.build_ext import build_ext as BuildExt
|
||||
from setuptools.command.test import test as TestCommand
|
||||
from subprocess import Popen, PIPE
|
||||
|
||||
DIR = os.path.abspath(os.path.dirname(__file__))
|
||||
@ -52,14 +51,6 @@ class BuildJsonnetExt(BuildExt):
|
||||
|
||||
BuildExt.run(self)
|
||||
|
||||
|
||||
class NoopTestCommand(TestCommand):
|
||||
def __init__(self, dist):
|
||||
print(
|
||||
"_gojsonnet does not support running tests with 'python setup.py test'. Please run 'pytest'."
|
||||
)
|
||||
|
||||
|
||||
jsonnet_ext = Extension(
|
||||
"_gojsonnet",
|
||||
sources=MODULE_SOURCES,
|
||||
@ -79,7 +70,6 @@ setup(
|
||||
version=get_version(),
|
||||
cmdclass={
|
||||
"build_ext": BuildJsonnetExt,
|
||||
"test": NoopTestCommand,
|
||||
},
|
||||
ext_modules=[jsonnet_ext],
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user