Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] python-Cython: split python3-Cython to a new package
@ 2023-06-16 21:33 paper42
  2023-06-17 17:04 ` [PR PATCH] [Merged]: " paper42
  0 siblings, 1 reply; 2+ messages in thread
From: paper42 @ 2023-06-16 21:33 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1290 bytes --]

There is a new pull request by paper42 against master on the void-packages repository

https://github.com/paper42/void-packages py2split-cython
https://github.com/void-linux/void-packages/pull/44480

python-Cython: split python3-Cython to a new package
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **briefly**

@ahesford 

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/44480.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-py2split-cython-44480.patch --]
[-- Type: text/x-diff, Size: 3052 bytes --]

From 31b58ff3e060c5b39fb36ee41d8ba091fe18aeaf Mon Sep 17 00:00:00 2001
From: Michal Vasilek <michal@vasilek.cz>
Date: Thu, 15 Jun 2023 22:24:06 +0200
Subject: [PATCH] python-Cython: split python3-Cython to a new package

---
 srcpkgs/python-Cython/template  | 23 ++++++++---------------
 srcpkgs/python3-Cython          |  1 -
 srcpkgs/python3-Cython/template | 28 ++++++++++++++++++++++++++++
 3 files changed, 36 insertions(+), 16 deletions(-)
 delete mode 120000 srcpkgs/python3-Cython
 create mode 100644 srcpkgs/python3-Cython/template

diff --git a/srcpkgs/python-Cython/template b/srcpkgs/python-Cython/template
index 5248a14c8bca..06d15eb26f45 100644
--- a/srcpkgs/python-Cython/template
+++ b/srcpkgs/python-Cython/template
@@ -2,11 +2,11 @@
 pkgname=python-Cython
 version=0.29.35
 revision=1
-build_style=python-module
-hostmakedepends="python-setuptools python3-setuptools"
-makedepends="python-devel python3-devel"
+build_style=python2-module
+hostmakedepends="python-setuptools"
+makedepends="python-devel"
 depends="python-setuptools"
-short_desc="C-Extensions for Python2"
+short_desc="C-Extensions for Python3"
 maintainer="Andrew J. Hesford <ajh@sideband.org>"
 license="Apache-2.0"
 homepage="https://cython.org/"
@@ -21,15 +21,8 @@ alternatives="
  cython:cython:/usr/bin/cython2
  cython:cythonize:/usr/bin/cythonize2"
 
-python3-Cython_package() {
-	alternatives="
-	 cython:cygdb:/usr/bin/cygdb3
-	 cython:cython:/usr/bin/cython3
-	 cython:cythonize:/usr/bin/cythonize3"
-	short_desc="${short_desc/Python2/Python3}"
-	depends="python3-setuptools"
-	pkg_install() {
-		vmove "usr/bin/*3"
-		vmove "usr/lib/python3*"
-	}
+post_install() {
+	mv ${DESTDIR}/usr/bin/cygdb{,2}
+	mv ${DESTDIR}/usr/bin/cython{,2}
+	mv ${DESTDIR}/usr/bin/cythonize{,2}
 }
diff --git a/srcpkgs/python3-Cython b/srcpkgs/python3-Cython
deleted file mode 120000
index 61695ff83c3b..000000000000
--- a/srcpkgs/python3-Cython
+++ /dev/null
@@ -1 +0,0 @@
-python-Cython
\ No newline at end of file
diff --git a/srcpkgs/python3-Cython/template b/srcpkgs/python3-Cython/template
new file mode 100644
index 000000000000..8882f11729e4
--- /dev/null
+++ b/srcpkgs/python3-Cython/template
@@ -0,0 +1,28 @@
+# Template file for 'python3-Cython'
+pkgname=python3-Cython
+version=0.29.35
+revision=1
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+makedepends="python3-devel"
+depends="python3-setuptools"
+short_desc="C-Extensions for Python3"
+maintainer="Andrew J. Hesford <ajh@sideband.org>"
+license="Apache-2.0"
+homepage="https://cython.org/"
+changelog="https://raw.githubusercontent.com/cython/cython/master/CHANGES.rst"
+distfiles="${PYPI_SITE}/C/Cython/Cython-${version}.tar.gz"
+checksum=6e381fa0bf08b3c26ec2f616b19ae852c06f5750f4290118bf986b6f85c8c527
+# Tests are flaky
+make_check=no
+
+alternatives="
+ cython:cygdb:/usr/bin/cygdb3
+ cython:cython:/usr/bin/cython3
+ cython:cythonize:/usr/bin/cythonize3"
+
+post_install() {
+	mv ${DESTDIR}/usr/bin/cygdb{,3}
+	mv ${DESTDIR}/usr/bin/cython{,3}
+	mv ${DESTDIR}/usr/bin/cythonize{,3}
+}

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PR PATCH] [Merged]: python-Cython: split python3-Cython to a new package
  2023-06-16 21:33 [PR PATCH] python-Cython: split python3-Cython to a new package paper42
@ 2023-06-17 17:04 ` paper42
  0 siblings, 0 replies; 2+ messages in thread
From: paper42 @ 2023-06-17 17:04 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1131 bytes --]

There's a merged pull request on the void-packages repository

python-Cython: split python3-Cython to a new package
https://github.com/void-linux/void-packages/pull/44480

Description:
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **briefly**

@ahesford 

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-06-17 17:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-16 21:33 [PR PATCH] python-Cython: split python3-Cython to a new package paper42
2023-06-17 17:04 ` [PR PATCH] [Merged]: " paper42

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).