summaryrefslogtreecommitdiff
path: root/config/software/asdf-python.rb
blob: b7b67638e0fd30302f539c3a942497ad63f082b3 (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
name "asdf-python"

license "Python-2.0"
license_file "LICENSE"
skip_transitive_dependency_licensing true

default_version "3.8.3"

dependency "ncurses"
dependency "zlib"
dependency "openssl"

version("3.8.3") { source sha256: "6af6d4d2e010f9655518d0fc6738c7ff7069f10a4d2fbd55509e467f092a8b90" }

source url: "https://python.org/ftp/python/#{version}/Python-#{version}.tgz"

relative_path "Python-#{version}"

build do
  env = with_standard_compiler_flags(with_embedded_path)
  configure_command = [
    "--prefix=#{install_dir}/installs/ruby/#{version}",
    "--enable-shared",
    "--with-dbmliborder=",
  ]
  configure(*configure_command, env: env)
  make env: env
  make "install", env: env
end