summaryrefslogtreecommitdiff
path: root/config/projects/python.rb
diff options
context:
space:
mode:
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