Skip to content

Commit

Permalink
Fix gevent patch to not depend on environment variables, and incremen…
Browse files Browse the repository at this point in the history
…t build numbers of recently-updated recipes (though they have not been released)
  • Loading branch information
mhsmith committed Sep 19, 2023
1 parent 73a1e53 commit 0fa0527
Show file tree
Hide file tree
Showing 15 changed files with 36 additions and 13 deletions.
3 changes: 3 additions & 0 deletions server/pypi/packages/chaquopy-flac/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ package:
name: chaquopy-flac
version: {{ version }}

build:
number: 1

source:
url: https://ftp.osuosl.org/pub/xiph/releases/flac/flac-{{ version }}.tar.xz

Expand Down
3 changes: 3 additions & 0 deletions server/pypi/packages/chaquopy-geos/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@ package:
name: chaquopy-geos
version: {{ version }}

build:
number: 1

source:
url: http://download.osgeo.org/geos/geos-{{ version }}.tar.bz2
2 changes: 1 addition & 1 deletion server/pypi/packages/chaquopy-hdf5/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package:
version: {{ version }}

build:
number: 1
number: 2

source:
url: https://github.com/hdfgroup/hdf5/archive/hdf5-{{ version | replace(".", "_") }}.tar.gz
2 changes: 1 addition & 1 deletion server/pypi/packages/chaquopy-libjpeg/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package:
version: "1.5.3"

build:
number: 1
number: 2

source:
url: https://downloads.sourceforge.net/project/libjpeg-turbo/1.5.3/libjpeg-turbo-1.5.3.tar.gz
3 changes: 3 additions & 0 deletions server/pypi/packages/chaquopy-libogg/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@ package:
name: chaquopy-libogg
version: {{ version }}

build:
number: 1

source:
url: https://ftp.osuosl.org/pub/xiph/releases/ogg/libogg-{{ version }}.tar.gz
2 changes: 1 addition & 1 deletion server/pypi/packages/chaquopy-libpng/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package:
version: "1.6.34"

build:
number: 1
number: 2

source:
url: ftp://ftp-osl.osuosl.org/pub/libpng/src/libpng16/libpng-1.6.34.tar.gz
3 changes: 3 additions & 0 deletions server/pypi/packages/chaquopy-libraw/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,8 @@ package:
name: chaquopy-libraw
version: {{ version }}

build:
number: 1

source:
url: https://www.libraw.org/data/LibRaw-{{ version }}.tar.gz
3 changes: 3 additions & 0 deletions server/pypi/packages/chaquopy-libsndfile/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ package:
name: chaquopy-libsndfile
version: {{ version }}

build:
number: 1

source:
url: http://www.mega-nerd.com/libsndfile/files/libsndfile-{{ version }}.tar.gz

Expand Down
3 changes: 3 additions & 0 deletions server/pypi/packages/chaquopy-libvorbis/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ package:
name: chaquopy-libvorbis
version: {{ version }}

build:
number: 1

source:
url: https://ftp.osuosl.org/pub/xiph/releases/vorbis/libvorbis-{{ version }}.tar.gz

Expand Down
2 changes: 1 addition & 1 deletion server/pypi/packages/chaquopy-libxml2/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package:
version: "2.9.8"

build:
number: 2
number: 3

source:
url: ftp://xmlsoft.org/libxml2/libxml2-2.9.8.tar.gz
2 changes: 1 addition & 1 deletion server/pypi/packages/chaquopy-libxslt/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package:
version: "1.1.32"

build:
number: 2
number: 3

source:
url: ftp://xmlsoft.org/libxslt/libxslt-1.1.32.tar.gz
Expand Down
2 changes: 1 addition & 1 deletion server/pypi/packages/chaquopy-secp256k1/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package:
version: "20191011" # Date of below commit.

build:
number: 1
number: 2

source:
# Commit ID from coincurve's setup.py.
Expand Down
3 changes: 3 additions & 0 deletions server/pypi/packages/chaquopy-ta-lib/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,8 @@ package:
name: chaquopy-ta-lib
version: "0.4.0"

build:
number: 1

source:
url: http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz
2 changes: 1 addition & 1 deletion server/pypi/packages/gevent/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package:
version: "1.4.0"

build:
number: 3
number: 4

requirements:
host:
Expand Down
14 changes: 8 additions & 6 deletions server/pypi/packages/gevent/patches/chaquopy.patch
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
diff -ur src-original/_setuplibev.py src/_setuplibev.py
--- src-original/_setuplibev.py 2019-01-04 11:51:44.000000000 +0000
+++ src/_setuplibev.py 2019-08-05 14:16:18.730590045 +0000
@@ -29,9 +29,12 @@
--- src-original/_setuplibev.py 2019-01-04 11:51:44.000000000 +0000
+++ src/_setuplibev.py 2023-09-19 18:16:51.442556988 +0000
@@ -29,9 +29,15 @@
# the build/temp.XXX/libev/ directory. If we're building from a
# source checkout on pypy, OLDPWD will be the location of setup.py
# and the PyPy branch will clean it up.
+
+# Chaquopy: added --host.
+# Chaquopy
+import os
+host = os.environ.get("HOST")
+host_arg = f" --host={host}" if host else ""
+
libev_configure_command = ' '.join([
"(cd ", quoted_dep_abspath('libev'),
- " && sh ./configure ",
+ " && sh ./configure --host=" + os.environ["HOST"],
+ " && sh ./configure " + host_arg,
" && cp config.h \"$OLDPWD\"",
")",
'> configure-output.txt'
Expand Down

0 comments on commit 0fa0527

Please sign in to comment.