summaryrefslogtreecommitdiff
path: root/config/projects/python.rb
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-08-06 17:42:37 +0000
committermo khan <mo.khan@gmail.com>2020-08-06 17:42:37 +0000
commitdae67cdc5db97d87b90b76b3283b674edc052e16 (patch)
treec6affe3e88e8d06e8e59a70b0297e353766a280b /config/projects/python.rb
parent06b158403c3ce87081109dad8dd76581a1b18c2d (diff)
parent4b130604be2dcd96bde5f708e0f4dc91f86bd89b (diff)
Merge branch '217904-debian-pkgs' into 'master'
Build debian packages for tools See merge request gitlab-org/security-products/license-management!202
Diffstat (limited to 'config/projects/python.rb')
-rw-r--r--config/projects/python.rb21
1 files changed, 21 insertions, 0 deletions
diff --git a/config/projects/python.rb b/config/projects/python.rb
new file mode 100644
index 0000000..6b75a1c
--- /dev/null
+++ b/config/projects/python.rb
@@ -0,0 +1,21 @@
+# frozen_string_literal: true
+
+python_version = ENV.fetch('PYTHON_VERSION', '3.8.5')
+
+name "python-#{python_version}"
+maintainer "GitLab B.V."
+homepage "https://www.python.org/"
+
+install_dir "/opt/asdf/installs/python/#{python_version}"
+package_scripts_path Pathname.pwd.join("config/scripts/python")
+
+build_version python_version
+build_iteration 1
+
+override 'asdf_python', version: python_version
+dependency "asdf_python"
+
+package :deb do
+ compression_level 9
+ compression_type :xz
+end