pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/py-curses Fix py-curses with python 3.10 .
details: https://anonhg.NetBSD.org/pkgsrc/rev/cb768d1d1dd9
branches: trunk
changeset: 771772:cb768d1d1dd9
user: nros <nros%pkgsrc.org@localhost>
date: Sun Dec 26 19:57:05 2021 +0000
description:
Fix py-curses with python 3.10 .
The fix has been tested with
python versions 2.7 3.6 3.9
and 3.10 .
diffstat:
devel/py-curses/Makefile | 4 +---
devel/py-curses/files/setup.py | 9 ++++++---
2 files changed, 7 insertions(+), 6 deletions(-)
diffs (47 lines):
diff -r 906f768d1e5f -r cb768d1d1dd9 devel/py-curses/Makefile
--- a/devel/py-curses/Makefile Sun Dec 26 19:15:13 2021 +0000
+++ b/devel/py-curses/Makefile Sun Dec 26 19:57:05 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.52 2021/12/06 16:03:50 wiz Exp $
+# $NetBSD: Makefile,v 1.53 2021/12/26 19:57:05 nros Exp $
PKGNAME= ${PYPKGPREFIX}-curses-${PY_DISTVERSION}
PKGREVISION= 6
@@ -11,8 +11,6 @@
PYDISTUTILSPKG= yes
PY_PATCHPLIST= yes
-#CPPFLAGS+= -I${PREFIX}/include/python3.10/internal
-
# NetBSD-8 curses has enough support for py-curses
USE_CURSES= getsyx
# But we build as ncurses still to get the full feature set easily
diff -r 906f768d1e5f -r cb768d1d1dd9 devel/py-curses/files/setup.py
--- a/devel/py-curses/files/setup.py Sun Dec 26 19:15:13 2021 +0000
+++ b/devel/py-curses/files/setup.py Sun Dec 26 19:57:05 2021 +0000
@@ -1,19 +1,22 @@
-# $NetBSD: setup.py,v 1.1 2002/01/28 09:32:55 drochner Exp $
+# $NetBSD: setup.py,v 1.2 2021/12/26 19:57:05 nros Exp $
import distutils
+import os
from distutils.core import setup, Extension
+from distutils.sysconfig import get_python_inc
ncursesprefix = '@NCURSESPREFIX@'
ncincl = ncursesprefix + '/include'
nclib = ncursesprefix + '/lib'
+py_inc_int = os.path.join(get_python_inc(), 'internal')
setup(
ext_modules = [
Extension(
'_curses',
['Modules/_cursesmodule.c'],
- define_macros=[('HAVE_NCURSES_H', None)],
- include_dirs=[ncincl],
+ define_macros=[('HAVE_NCURSES_H', None), ('Py_BUILD_CORE_MODULE', None)],
+ include_dirs=[ncincl, py_inc_int],
library_dirs=[nclib],
runtime_library_dirs=[nclib],
libraries=['ncurses']
Home |
Main Index |
Thread Index |
Old Index