Skip to content
This repository was archived by the owner on Jun 1, 2026. It is now read-only.

Commit 1e828d2

Browse files
committed
revert setup.py
1 parent 3edded7 commit 1e828d2

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

setup.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
import shutil
1919
import setuptools
2020
import setuptools.command.build_ext
21-
import re
2221

2322
_EXTRA_DLL = "extra-dll"
2423
_DLL_FILENAME = "crc32c.dll"
@@ -27,14 +26,7 @@
2726
CRC32C_PURE_PYTHON_EXPLICIT = "CRC32C_PURE_PYTHON" in os.environ
2827
_FALSE_OPTIONS = ("0", "false", "no", "False", "No", None)
2928
CRC32C_PURE_PYTHON = os.getenv("CRC32C_PURE_PYTHON") not in _FALSE_OPTIONS
30-
PACKAGE_ROOT = os.path.abspath(os.path.dirname(__file__))
3129

32-
version = None
33-
34-
with open(os.path.join(PACKAGE_ROOT, "pyproject.toml")) as fp:
35-
version_candidates = re.findall(r"(?<=\")\d+.\d+.\d+(?=\")", fp.read())
36-
assert len(version_candidates) == 1
37-
version = version_candidates[0]
3830

3931
def copy_dll(build_lib):
4032
install_prefix = os.environ.get("CRC32C_INSTALL_PREFIX")

0 commit comments

Comments
 (0)