Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F7123806
D8491.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
D8491.diff
View Options
diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -1,11 +1,12 @@
#!/usr/bin/env python3
-# Copyright (C) 2019-2021 The Software Heritage developers
+# Copyright (C) 2019-2022 The Software Heritage developers
# See the AUTHORS file at the top-level directory of this distribution
# License: GNU Affero General Public License version 3, or any later version
# See top-level LICENSE file for more information
from io import open
from os import path
+import sys
from setuptools import Extension, find_packages, setup
@@ -36,6 +37,10 @@
return requirements
+macros = []
+if sys.version_info[:2] >= (3, 10): # https://github.com/python/cpython/issues/85115
+ macros.append(("PY_SSIZE_T_CLEAN", None))
+
setup(
name="swh.loader.cvs",
description="Software Heritage CVS Loader",
@@ -76,6 +81,7 @@
"swh/loader/cvs/rcsparse/py-rcsparse.c",
"swh/loader/cvs/rcsparse/rcsparse.c",
],
+ define_macros=macros,
)
],
)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Dec 20 2024, 2:44 AM (11 w, 3 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3225808
Attached To
D8491: setup.py: Fix debian unstable package build
Event Timeline
Log In to Comment