File: cinder-3.10-dev

package info (click to toggle)
pyenv 2.6.8-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,496 kB
  • sloc: sh: 4,914; python: 410; makefile: 161; ansic: 60
file content (43 lines) | stat: -rw-r--r-- 1,495 bytes parent folder | download | duplicates (2)
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
32
33
34
35
36
37
38
39
40
41
42
43
if [ "$(expr substr "$(uname -s)" 1 5)" != "Linux" ]; then
  {
    echo
    colorize 1 "ERROR"
    echo ": Cinder currently only supports Linux."
    echo
    return 1
  } >&2
fi

if [[ $(${CC:-gcc} -dumpversion 2>/dev/null) != 10 ]] &&
  (command -v "gcc-10" >/dev/null) &&
  (command -v "g++-10" >/dev/null); then
  echo "python-build: setting the compiler to GCC 10"
  export CC="gcc-10"
  export CXX="g++-10"
fi

if [[ $(awk -F. '{print $1}' <<< "$(${CC:-gcc} -dumpversion)") -lt 10 ]]; then
  {
    echo
    colorize 1 "ERROR"
    echo ": Cinder requires at least GCC 10."
    echo
    return 1
  } >&2
fi

require_distro Fedora 32 &> /dev/null ||
  {
    echo
    colorize 1 "WARNING"
    echo ": Cinder officially only supports Facebook's Docker"
    echo "images which are based on Fedora 32. It may fail to build"
    echo "on a system with a different GCC and/or Glibc version."
    echo
  } >&2

prefer_openssl11
export PYTHON_BUILD_CONFIGURE_WITH_OPENSSL=1
install_package "openssl-1.1.1n" "https://www.openssl.org/source/openssl-1.1.1n.tar.gz#40dceb51a4f6a5275bde0e6bf20ef4b91bfc32ed57c0552e2e8e15463372b17a" mac_openssl --if has_broken_mac_openssl
install_package "readline-8.0" "https://ftpmirror.gnu.org/readline/readline-8.0.tar.gz#e339f51971478d369f8a053a330a190781acb9864cf4c541060f12078948e461" mac_readline --if has_broken_mac_readline
install_git "Cinder-3.10-dev" "https://github.com/facebookincubator/cinder" "cinder/3.10" standard verify_py310 copy_python_gdb ensurepip