buildout.cfg 2.81 KB
Newer Older
1 2
[buildout]
extends =
Łukasz Nowak's avatar
Łukasz Nowak committed
3 4 5
  ../bzip2/buildout.cfg
  ../gdbm/buildout.cfg
  ../gettext/buildout.cfg
6
  ../libexpat/buildout.cfg
7
  ../libffi/buildout.cfg
Łukasz Nowak's avatar
Łukasz Nowak committed
8 9
  ../ncurses/buildout.cfg
  ../openssl/buildout.cfg
Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
10
  ../patch/buildout.cfg
Łukasz Nowak's avatar
Łukasz Nowak committed
11 12 13
  ../readline/buildout.cfg
  ../sqlite3/buildout.cfg
  ../zlib/buildout.cfg
14
  ../file/buildout.cfg
15
  ../xz-utils/buildout.cfg
16 17 18 19 20 21 22 23 24 25 26 27 28

parts =
    python2.7

[bootstrap2.7]
recipe = zc.recipe.egg
eggs = zc.buildout
suffix =
scripts =
    buildout=bootstrap2.7
arguments = sys.argv[1:] + ["bootstrap"]
python = python2.7

29
[python2.7]
30
recipe = slapos.recipe.cmmi
31
shared = true
32
package_version = 2.7.15
33
package_version_suffix =
34
md5sum = a80ae3cc478460b922242f43a1b4094d
35

36 37
# This is actually the default setting for prefix, but we can't use it in
# other settings in this part if we don't set it explicitly here.
38
prefix = @@LOCATION@@
39 40 41
version = 2.7
executable = ${:prefix}/bin/python${:version}

42 43
patch-options = -p1
patches =
44
  ${:_profile_base_location_}/fix_compiler_module_issue_20613.patch#94443a77f903e9de880a029967fa6aa7
45
  ${:_profile_base_location_}/pytracemalloc_pep445.patch#3dfad79654af9671325f988c36fb6be2
46
  ${:_profile_base_location_}/disabled_module_list.patch#71ad30d32bcdbc50c19cf48675b1246e
47
  ${:_profile_base_location_}/asyncore_poll_insteadof_select.patch#ab6991c0ee6e25aeb8951e71f280a2f1
48
url =
49
  http://www.python.org/ftp/python/${:package_version}/Python-${:package_version}${:package_version_suffix}.tar.xz
50
configure-options =
51
  --enable-ipv6
52
  --enable-unicode=ucs4
53
  --with-system-expat
54
  --with-system-ffi
55
  --with-threads
56 57 58
# Profiled build:
make-binary =
make-targets = make profile-opt && make install
59

60
extra-ldflags =
61 62
# the entry "-Wl,-rpath=${file:location}/lib" below is needed by python-magic,
# which would otherwise load the system libmagic.so with ctypes
63
environment =
Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
64
  PATH=${patch:location}/bin:${xz-utils:location}/bin:%(PATH)s
65
  CPPFLAGS=-I${zlib:location}/include -I${readline:location}/include -I${libexpat:location}/include -I${libffi:location}/include -I${ncurses:location}/include -I${ncurses:location}/include/ncursesw -I${bzip2:location}/include  -I${gdbm:location}/include -I${openssl:location}/include -I${sqlite3:location}/include -I${gettext:location}/include
66
  LDFLAGS=-L${zlib:location}/lib -L${readline:location}/lib -L${libexpat:location}/lib -L${libffi:location}/lib -L${ncurses:location}/lib -L${bzip2:location}/lib -L${gdbm:location}/lib -L${openssl:location}/lib -L${sqlite3:location}/lib -Wl,-rpath=${zlib:location}/lib -Wl,-rpath=${readline:location}/lib -Wl,-rpath=${libexpat:location}/lib -Wl,-rpath=${libffi:location}/lib -Wl,-rpath=${ncurses:location}/lib -Wl,-rpath=${bzip2:location}/lib -Wl,-rpath=${gdbm:location}/lib -Wl,-rpath=${openssl:location}/lib -Wl,-rpath=${sqlite3:location}/lib -L${gettext:location}/lib -Wl,-rpath=${gettext:location}/lib -Wl,-rpath=${file:location}/lib ${:extra-ldflags}