diff options
| author | mo khan <mo.khan@gmail.com> | 2020-06-20 16:17:33 -0600 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-06-20 16:17:33 -0600 |
| commit | 73df07d4420b894268884a9f11fc4913c8d2f924 (patch) | |
| tree | 30f082ad235c1af6b75fdafa92f220b2f9d82113 /config/software/asdf-python.rb | |
| parent | a808a2fc52e501aad1143a0ddf7d62d67b374436 (diff) | |
Build pythons
Diffstat (limited to 'config/software/asdf-python.rb')
| -rw-r--r-- | config/software/asdf-python.rb | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/config/software/asdf-python.rb b/config/software/asdf-python.rb new file mode 100644 index 0000000..b7b6763 --- /dev/null +++ b/config/software/asdf-python.rb @@ -0,0 +1,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 |
