pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

py-scikit-build: new package for improved build system generator for Python



Module Name:	pkgsrc-wip
Committed By:	Kinoshita Daisuke <kinoshita%astro.ncu.edu.tw@localhost>
Pushed By:	daisuke
Date:		Thu Aug 18 19:06:52 2022 +0800
Changeset:	11f9d975129d72c919a4bd1c4822de5703fd6868

Modified Files:
	Makefile
Added Files:
	py-scikit-build/DESCR
	py-scikit-build/Makefile
	py-scikit-build/PLIST
	py-scikit-build/distinfo
	py-scikit-build/patches/patch-skbuild_platform__specifics_platform__factory.py
	py-scikit-build/patches/patch-tests_test__platform.py

Log Message:
py-scikit-build: new package for improved build system generator for Python

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=11f9d975129d72c919a4bd1c4822de5703fd6868

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile                                           |   1 +
 py-scikit-build/DESCR                              |   1 +
 py-scikit-build/Makefile                           |  21 ++++
 py-scikit-build/PLIST                              | 109 +++++++++++++++++++++
 py-scikit-build/distinfo                           |   7 ++
 ...kbuild_platform__specifics_platform__factory.py |  13 +++
 .../patches/patch-tests_test__platform.py          |  18 ++++
 7 files changed, 170 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index f8b8dac644..725246e00e 100644
--- a/Makefile
+++ b/Makefile
@@ -4578,6 +4578,7 @@ SUBDIR+=	py-scanless
 SUBDIR+=	py-schema
 SUBDIR+=	py-scholarmetrics
 SUBDIR+=	py-scikit-aero
+SUBDIR+=	py-scikit-build
 SUBDIR+=	py-scikit-glpk
 SUBDIR+=	py-scikit-learn
 SUBDIR+=	py-scikit-monaco
diff --git a/py-scikit-build/DESCR b/py-scikit-build/DESCR
new file mode 100644
index 0000000000..6c56d1b033
--- /dev/null
+++ b/py-scikit-build/DESCR
@@ -0,0 +1 @@
+Improved build system generator for CPython C/C++/Fortran/Cython extensions.
diff --git a/py-scikit-build/Makefile b/py-scikit-build/Makefile
new file mode 100644
index 0000000000..ddfbe49d79
--- /dev/null
+++ b/py-scikit-build/Makefile
@@ -0,0 +1,21 @@
+# $NetBSD$
+
+DISTNAME=	scikit-build-0.15.0
+PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES=	devel python
+MASTER_SITES=	${MASTER_SITE_PYPI:=s/scikit-build/}
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://github.com/scikit-build/scikit-build
+COMMENT=	Improved build system generator for Python C/C++/Fortran/Cython
+LICENSE=	mit
+
+DEPENDS+=	${PYPKGPREFIX}-distro>=0:../../devel/py-distro
+DEPENDS+=	${PYPKGPREFIX}-packaging>=0:../../devel/py-packaging
+DEPENDS+=	${PYPKGPREFIX}-setuptools>=28.0.0:../../devel/py-setuptools
+DEPENDS+=	${PYPKGPREFIX}-wheel>=0.29.0:../../devel/py-wheel
+
+USE_LANGUAGES=	c++
+
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/py-scikit-build/PLIST b/py-scikit-build/PLIST
new file mode 100644
index 0000000000..e1f0c9021c
--- /dev/null
+++ b/py-scikit-build/PLIST
@@ -0,0 +1,109 @@
+@comment $NetBSD$
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/not-zip-safe
+${PYSITELIB}/${EGG_INFODIR}/requires.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/skbuild/__init__.py
+${PYSITELIB}/skbuild/__init__.pyc
+${PYSITELIB}/skbuild/__init__.pyo
+${PYSITELIB}/skbuild/_version.py
+${PYSITELIB}/skbuild/_version.pyc
+${PYSITELIB}/skbuild/_version.pyo
+${PYSITELIB}/skbuild/cmaker.py
+${PYSITELIB}/skbuild/cmaker.pyc
+${PYSITELIB}/skbuild/cmaker.pyo
+${PYSITELIB}/skbuild/command/__init__.py
+${PYSITELIB}/skbuild/command/__init__.pyc
+${PYSITELIB}/skbuild/command/__init__.pyo
+${PYSITELIB}/skbuild/command/bdist.py
+${PYSITELIB}/skbuild/command/bdist.pyc
+${PYSITELIB}/skbuild/command/bdist.pyo
+${PYSITELIB}/skbuild/command/bdist_wheel.py
+${PYSITELIB}/skbuild/command/bdist_wheel.pyc
+${PYSITELIB}/skbuild/command/bdist_wheel.pyo
+${PYSITELIB}/skbuild/command/build.py
+${PYSITELIB}/skbuild/command/build.pyc
+${PYSITELIB}/skbuild/command/build.pyo
+${PYSITELIB}/skbuild/command/build_ext.py
+${PYSITELIB}/skbuild/command/build_ext.pyc
+${PYSITELIB}/skbuild/command/build_ext.pyo
+${PYSITELIB}/skbuild/command/build_py.py
+${PYSITELIB}/skbuild/command/build_py.pyc
+${PYSITELIB}/skbuild/command/build_py.pyo
+${PYSITELIB}/skbuild/command/clean.py
+${PYSITELIB}/skbuild/command/clean.pyc
+${PYSITELIB}/skbuild/command/clean.pyo
+${PYSITELIB}/skbuild/command/egg_info.py
+${PYSITELIB}/skbuild/command/egg_info.pyc
+${PYSITELIB}/skbuild/command/egg_info.pyo
+${PYSITELIB}/skbuild/command/generate_source_manifest.py
+${PYSITELIB}/skbuild/command/generate_source_manifest.pyc
+${PYSITELIB}/skbuild/command/generate_source_manifest.pyo
+${PYSITELIB}/skbuild/command/install.py
+${PYSITELIB}/skbuild/command/install.pyc
+${PYSITELIB}/skbuild/command/install.pyo
+${PYSITELIB}/skbuild/command/install_lib.py
+${PYSITELIB}/skbuild/command/install_lib.pyc
+${PYSITELIB}/skbuild/command/install_lib.pyo
+${PYSITELIB}/skbuild/command/install_scripts.py
+${PYSITELIB}/skbuild/command/install_scripts.pyc
+${PYSITELIB}/skbuild/command/install_scripts.pyo
+${PYSITELIB}/skbuild/command/sdist.py
+${PYSITELIB}/skbuild/command/sdist.pyc
+${PYSITELIB}/skbuild/command/sdist.pyo
+${PYSITELIB}/skbuild/command/test.py
+${PYSITELIB}/skbuild/command/test.pyc
+${PYSITELIB}/skbuild/command/test.pyo
+${PYSITELIB}/skbuild/compat.py
+${PYSITELIB}/skbuild/compat.pyc
+${PYSITELIB}/skbuild/compat.pyo
+${PYSITELIB}/skbuild/constants.py
+${PYSITELIB}/skbuild/constants.pyc
+${PYSITELIB}/skbuild/constants.pyo
+${PYSITELIB}/skbuild/exceptions.py
+${PYSITELIB}/skbuild/exceptions.pyc
+${PYSITELIB}/skbuild/exceptions.pyo
+${PYSITELIB}/skbuild/platform_specifics/README.rst
+${PYSITELIB}/skbuild/platform_specifics/__init__.py
+${PYSITELIB}/skbuild/platform_specifics/__init__.pyc
+${PYSITELIB}/skbuild/platform_specifics/__init__.pyo
+${PYSITELIB}/skbuild/platform_specifics/abstract.py
+${PYSITELIB}/skbuild/platform_specifics/abstract.pyc
+${PYSITELIB}/skbuild/platform_specifics/abstract.pyo
+${PYSITELIB}/skbuild/platform_specifics/bsd.py
+${PYSITELIB}/skbuild/platform_specifics/bsd.pyc
+${PYSITELIB}/skbuild/platform_specifics/bsd.pyo
+${PYSITELIB}/skbuild/platform_specifics/cygwin.py
+${PYSITELIB}/skbuild/platform_specifics/cygwin.pyc
+${PYSITELIB}/skbuild/platform_specifics/cygwin.pyo
+${PYSITELIB}/skbuild/platform_specifics/linux.py
+${PYSITELIB}/skbuild/platform_specifics/linux.pyc
+${PYSITELIB}/skbuild/platform_specifics/linux.pyo
+${PYSITELIB}/skbuild/platform_specifics/osx.py
+${PYSITELIB}/skbuild/platform_specifics/osx.pyc
+${PYSITELIB}/skbuild/platform_specifics/osx.pyo
+${PYSITELIB}/skbuild/platform_specifics/platform_factory.py
+${PYSITELIB}/skbuild/platform_specifics/platform_factory.pyc
+${PYSITELIB}/skbuild/platform_specifics/platform_factory.pyo
+${PYSITELIB}/skbuild/platform_specifics/unix.py
+${PYSITELIB}/skbuild/platform_specifics/unix.pyc
+${PYSITELIB}/skbuild/platform_specifics/unix.pyo
+${PYSITELIB}/skbuild/platform_specifics/windows.py
+${PYSITELIB}/skbuild/platform_specifics/windows.pyc
+${PYSITELIB}/skbuild/platform_specifics/windows.pyo
+${PYSITELIB}/skbuild/resources/cmake/FindCython.cmake
+${PYSITELIB}/skbuild/resources/cmake/FindF2PY.cmake
+${PYSITELIB}/skbuild/resources/cmake/FindNumPy.cmake
+${PYSITELIB}/skbuild/resources/cmake/FindPythonExtensions.cmake
+${PYSITELIB}/skbuild/resources/cmake/UseCython.cmake
+${PYSITELIB}/skbuild/resources/cmake/UseF2PY.cmake
+${PYSITELIB}/skbuild/resources/cmake/UsePythonExtensions.cmake
+${PYSITELIB}/skbuild/resources/cmake/targetLinkLibrariesWithDynamicLookup.cmake
+${PYSITELIB}/skbuild/setuptools_wrap.py
+${PYSITELIB}/skbuild/setuptools_wrap.pyc
+${PYSITELIB}/skbuild/setuptools_wrap.pyo
+${PYSITELIB}/skbuild/utils/__init__.py
+${PYSITELIB}/skbuild/utils/__init__.pyc
+${PYSITELIB}/skbuild/utils/__init__.pyo
diff --git a/py-scikit-build/distinfo b/py-scikit-build/distinfo
new file mode 100644
index 0000000000..2cee62c2cc
--- /dev/null
+++ b/py-scikit-build/distinfo
@@ -0,0 +1,7 @@
+$NetBSD$
+
+BLAKE2s (scikit-build-0.15.0.tar.gz) = 351e69568df4b376370ff45be592b59c4d894347ddde34a7ebadf9fa135570a9
+SHA512 (scikit-build-0.15.0.tar.gz) = 4d9b1d06d48708ff4f2f5fa8c8f264c7ca85946d5842a1254930d9449d6b6386c17392473c3c85147f6573f7256c94c927962cb56fa23a90a5b442de8de8d727
+Size (scikit-build-0.15.0.tar.gz) = 268691 bytes
+SHA1 (patch-skbuild_platform__specifics_platform__factory.py) = 76012616d989abdf55a827df88ed02f6490a5b3e
+SHA1 (patch-tests_test__platform.py) = 590e3162c82af9d3ee742df47c48853c4706d93b
diff --git a/py-scikit-build/patches/patch-skbuild_platform__specifics_platform__factory.py b/py-scikit-build/patches/patch-skbuild_platform__specifics_platform__factory.py
new file mode 100644
index 0000000000..0c3aae461f
--- /dev/null
+++ b/py-scikit-build/patches/patch-skbuild_platform__specifics_platform__factory.py
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- skbuild/platform_specifics/platform_factory.py.orig	2022-05-18 17:52:53.000000000 +0000
++++ skbuild/platform_specifics/platform_factory.py
+@@ -31,7 +31,7 @@ def get_platform():
+ 
+         return osx.OSXPlatform()
+ 
+-    if this_platform in {"freebsd", "os400", "openbsd"}:
++    if this_platform in {"freebsd", "netbsd", "os400", "openbsd"}:
+         from . import bsd
+ 
+         return bsd.BSDPlatform()
diff --git a/py-scikit-build/patches/patch-tests_test__platform.py b/py-scikit-build/patches/patch-tests_test__platform.py
new file mode 100644
index 0000000000..a4b2e527e0
--- /dev/null
+++ b/py-scikit-build/patches/patch-tests_test__platform.py
@@ -0,0 +1,18 @@
+$NetBSD$
+
+--- tests/test_platform.py.orig	2022-05-18 17:52:53.000000000 +0000
++++ tests/test_platform.py
+@@ -84,11 +84,12 @@ def test_generator_cleanup():
+     assert not os.path.exists(test_folder)
+ 
+ 
+-@pytest.mark.parametrize("supported_platform", ["darwin", "freebsd", "openbsd", "linux", "windows", "os400", "cygwin"])
++@pytest.mark.parametrize("supported_platform", ["darwin", "freebsd", "netbsd", "openbsd", "linux", "windows", "os400", "cygwin"])
+ def test_known_platform(supported_platform, mocker):
+     mocker.patch("platform.system", return_value=supported_platform)
+     platforms = {
+         "freebsd": "BSD",
++        "netbsd": "BSD",
+         "openbsd": "BSD",
+         "linux": "Linux",
+         "darwin": "OSX",


Home | Main Index | Thread Index | Old Index