summaryrefslogtreecommitdiff
path: root/elements/core/python3.bst
blob: 0027e8252aa39a71aa8b4fcf7e1c8a0ede8f1a45 (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
31
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
  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