summaryrefslogtreecommitdiff
path: root/elements/core/python3.bst
blob: f0df130802d8a09bcdc452e4d0dabf354c75e232 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
kind: autotools
depends:
- gnu-toolchain.bst
- core/openssl-new.bst
- core/bzip2.bst
- core/libexpat.bst
- core/libffi.bst
- core/sqlite3.bst
- core/ncurses.bst
- core/readline.bst
sources:
- kind: git
  url: upstream:cpython
  track: v3.5.2
  ref: 609bc370055e03b3c74c4321a5990929c29a226d
config:
  configure-commands:
  - |
    ./configure --prefix="%{prefix}"  \
                --sysconfdir=/etc   \
                --enable-shared     \
                --with-system-expat \
                --with-system-ffi
  post-install-commands:
  - test -x "%{install-root}"/"%{prefix}"/bin/python || ln -s python3.5 "%{install-root}"/"%{prefix}"/bin/python
  - test -x "%{install-root}"/"%{prefix}"/bin/python3 || ln -s python3.5 "%{install-root}"/"%{prefix}"/bin/python3
  - test -x "%{install-root}"/"%{prefix}"/bin/python-config || ln -s python3.5-config
    "%{install-root}"/"%{prefix}"/bin/python-config
  - test -x "%{install-root}"/"%{prefix}"/bin/python3-config || ln -s python3.5-config
    "%{install-root}"/"%{prefix}"/bin/python3-config