Skip to content
This repository was archived by the owner on Oct 7, 2022. It is now read-only.

Commit f1d9e52

Browse files
committed
adding pillow example
1 parent 9f2089c commit f1d9e52

File tree

3 files changed

+31
-30
lines changed

3 files changed

+31
-30
lines changed

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ env:
1010
- EXAMPLE=ldap
1111
- EXAMPLE=lektor
1212
- EXAMPLE=mercurial
13+
- EXAMPLE=pillow
1314
- EXAMPLE=rss2email
1415
- EXAMPLE=scipy
1516
- EXAMPLE=tornado
@@ -18,6 +19,8 @@ matrix:
1819
exclude:
1920
- os: osx
2021
env: EXAMPLE=lektor
22+
- os: osx
23+
env: EXAMPLE=pillow
2124
- os: osx
2225
env: EXAMPLE=scipy
2326
before_install:

examples/Makefile

Lines changed: 23 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ PYPI2NIX=../result/bin/pypi2nix
33
NIX_PATH=nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/nixpkgs-unstable.tar.gz
44

55

6-
SENTRY_BUILD_INPUTS="libxslt libxml2 zlib libffi openssl postgresql freetype libjpeg openjpeg zlib libtiff libwebp tcl lcms2 pkgconfig cmake"
76
ifeq ($(OS), Darwin)
87
LEKTOR_BUILD_INPUTS="libffi openssl unzip darwin.apple_sdk.frameworks.Security darwin.apple_sdk.frameworks.CoreServices darwin.cf-private"
98
else
@@ -18,7 +17,7 @@ endif
1817
mercurial \
1918
rss2email \
2019
scipy \
21-
sentry \
20+
pillow \
2221
tornado \
2322
vulnix
2423

@@ -30,7 +29,7 @@ all: \
3029
mercurial \
3130
rss2email \
3231
scipy \
33-
sentry \
32+
pillow \
3433
tornado \
3534
vulnix
3635

@@ -43,7 +42,7 @@ clear: \
4342
pypi2nix-clear \
4443
rss2email-clear \
4544
scipy-clear \
46-
sentry-clear \
45+
pillow-clear \
4746
tornado-clear \
4847
vulnix-clear
4948

@@ -55,37 +54,31 @@ $(PYPI2NIX): pypi2nix-clear
5554
@echo "building pypi2nix ..."
5655
@cd .. && nix-build release.nix -A build.x86_64-linux
5756

58-
sentry: sentry.nix
59-
@echo "building and testing sentry ..."
60-
@nix-build sentry.nix -o sentry -A interpreter --show-trace &> /dev/null
61-
@./sentry/bin/python -c 'import sentry'
62-
@./sentry/bin/sentry --help
63-
@nix-shell sentry.nix -A interpreter --run "python -c 'import sentry'"
64-
@nix-shell sentry.nix -A interpreter --run "sentry --help"
57+
pillow: pillow.nix
58+
@echo "building and testing pillow..."
59+
@nix-build pillow.nix -o pillow -A interpreter --show-trace &> /dev/null
60+
@./pillow/bin/python -c 'import PIL'
61+
@nix-shell pillow.nix -A interpreter --run "python -c 'import PIL'"
6562

66-
sentry.nix: sentry.txt $(PYPI2NIX)
67-
@echo "generating sentry nix expressions ..."
63+
pillow.nix: pillow.txt $(PYPI2NIX)
64+
@echo "generating pillownix expressions ..."
6865
@$(PYPI2NIX) \
6966
-v \
70-
-V "2.7"
71-
--basename sentry \
72-
-e "https://github.com/garbas/Pillow/archive/pkg-config.tar.gz#egg=Pillow" \
73-
-e setuptools-scm \
74-
-e nose \
75-
-e pytest-runner \
76-
-r sentry.txt \
77-
-E $(SENTRY_BUILD_INPUTS) \
78-
-I $(NIX_PATH) \
67+
-V "3.5" \
68+
--basename pillow \
69+
-r pillow.txt \
70+
-E "pkgconfig zlib libjpeg openjpeg libtiff freetype lcms2 libwebp tcl" \
71+
-I $(NIX_PATH)
7972

80-
sentry.txt: sentry-clear
81-
@echo "Sentry" > sentry.txt
73+
pillow.txt: pillow-clear
74+
@echo "Pillow" > pillow.txt
8275

83-
sentry-clear:
84-
@rm -f sentry
85-
@rm -f sentry.txt
86-
@rm -f sentry.nix
87-
@rm -f sentry_generated.nix
88-
@rm -f sentry_frozen.txt
76+
pillow-clear:
77+
@rm -f pillow
78+
@rm -f pillow.txt
79+
@rm -f pillow.nix
80+
@rm -f pillow_generated.nix
81+
@rm -f pillow_frozen.txt
8982

9083

9184
empy: empy.nix

examples/pillow_override.nix

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{ pkgs, python }:
2+
3+
self: super: {
4+
5+
}

0 commit comments

Comments
 (0)