summaryrefslogtreecommitdiff
path: root/config/software
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-07-13 09:57:29 -0600
committermo khan <mo.khan@gmail.com>2020-08-21 16:31:57 -0600
commitcbc4d1e328fd0e578f038d57fbd6b9354dafa79e (patch)
tree99b53a90cd7c0996a2d0993b41eb56a695bcc996 /config/software
parenteb11eeb1018c4d32e8dbaf3f734e588205f0671f (diff)
Install tools from .deb package
Diffstat (limited to 'config/software')
-rw-r--r--config/software/asdf.rb2
-rw-r--r--config/software/asdf_golang.rb6
-rw-r--r--config/software/asdf_python.rb44
-rw-r--r--config/software/license_management.rb4
4 files changed, 32 insertions, 24 deletions
diff --git a/config/software/asdf.rb b/config/software/asdf.rb
index 1b5ba26..72b77ce 100644
--- a/config/software/asdf.rb
+++ b/config/software/asdf.rb
@@ -44,4 +44,6 @@ end
build do
delete "#{install_dir}/installs/elixir/**/man"
+ command "tar -czvf #{install_dir}/plugins.tar.gz #{install_dir}/plugins"
+ delete "#{install_dir}/plugins"
end
diff --git a/config/software/asdf_golang.rb b/config/software/asdf_golang.rb
index d8240b0..d7e8fd2 100644
--- a/config/software/asdf_golang.rb
+++ b/config/software/asdf_golang.rb
@@ -9,6 +9,12 @@ relative_path "go"
version "1.14.6" do
source sha256: "5c566ddc2e0bcfc25c26a5dc44a440fcc0177f7350c1f01952b34d5989a0d287"
end
+version "1.14.7" do
+ source sha256: "4a7fa60f323ee1416a4b1425aefc37ea359e9d64df19c326a58953a97ad41ea5"
+end
+version "1.15" do
+ source sha256: "2d75848ac606061efe52a8068d0e647b35ce487a15bb52272c427df485193602"
+end
build do
mkdir install_dir
diff --git a/config/software/asdf_python.rb b/config/software/asdf_python.rb
index 5a0e9c9..68cfd68 100644
--- a/config/software/asdf_python.rb
+++ b/config/software/asdf_python.rb
@@ -54,35 +54,35 @@ build do
configure(*configure_command, env: env)
make "-j #{workers}", env: env
make "-j #{workers} install", env: env
- command "ln -s #{install_dir}/embedded/bin #{install_dir}/bin"
-end
+ command "ln -s #{install_dir}/embedded/bin #{install_dir}/bin", env: env
-build do
if version.start_with?('3.')
- command "ln -s #{install_dir}/bin/python3 #{install_dir}/bin/python"
- command "ln -s #{install_dir}/bin/pip3 #{install_dir}/bin/pip"
+ command "ln -s #{install_dir}/bin/python3 #{install_dir}/bin/python", env: env
+ command "ln -s #{install_dir}/bin/pip3 #{install_dir}/bin/pip", env: env
end
- if File.exist?("#{install_dir}/bin/pip")
- command "#{install_dir}/bin/pip install --upgrade pip"
+ case version
+ when /^3\.3\./
+ command "curl https://bootstrap.pypa.io/3.3/get-pip.py -o #{project_dir}/get-pip.py", env: env
+ command "#{install_dir}/bin/python #{project_dir}/get-pip.py \"pip==10.0.1\"", env: env
+ command "#{install_dir}/bin/pip install pipenv virtualenv", env: env
+ when /^3\.4\./
+ command "#{install_dir}/bin/pip install pipenv==11.1.6 virtualenv", env: env
+ when /^2\.7\./
+ command "curl https://bootstrap.pypa.io/2.6/get-pip.py -o #{project_dir}/get-pip.py", env: env
+ command "#{install_dir}/bin/python #{project_dir}/get-pip.py \"pip<20.0\"", env: env
+ command "#{install_dir}/bin/pip install pipenv virtualenv", env: env
else
- case version
- when /^3\.2\./
- command "curl https://bootstrap.pypa.io/3.2/get-pip.py -o #{project_dir}/get-pip.py"
- when /^3\.3\./
- command "curl https://bootstrap.pypa.io/3.3/get-pip.py -o #{project_dir}/get-pip.py"
- when /^3\.4\./
- command "curl https://bootstrap.pypa.io/3.4/get-pip.py -o #{project_dir}/get-pip.py"
- when /^2\.6\./
- command "curl https://bootstrap.pypa.io/2.6/get-pip.py -o #{project_dir}/get-pip.py"
- else
- command "curl https://bootstrap.pypa.io/get-pip.py -o #{project_dir}/get-pip.py"
- end
+ command "#{install_dir}/bin/pip install pipenv virtualenv", env: env
+ end
- command "#{install_dir}/bin/python #{project_dir}/get-pip.py \"pip<20.0\""
+ if version == default_version
+ command "#{install_dir}/bin/pip install conan", env: env
+ command "#{install_dir}/bin/conan --version", env: env
end
- command "#{install_dir}/bin/pip install pipenv virtualenv"
- command "#{install_dir}/bin/pip install conan" if version == default_version
+ command "#{install_dir}/bin/pip --version", env: env
+ command "#{install_dir}/bin/pipenv --version", env: env
+ command "#{install_dir}/bin/virtualenv --version", env: env
end
build do
diff --git a/config/software/license_management.rb b/config/software/license_management.rb
index de8a854..3880799 100644
--- a/config/software/license_management.rb
+++ b/config/software/license_management.rb
@@ -38,8 +38,8 @@ end
build do
touch "#{install_dir}/.config/virtualenv/app-data/.keep"
- command "pip2 download -d #{install_dir}/.config/virtualenv/app-data pip-licenses pip setuptools wheel"
- command "pip3 download -d #{install_dir}/.config/virtualenv/app-data pip-licenses pip setuptools wheel"
+ command "pip2 download -d #{install_dir}/.config/virtualenv/app-data pip-licenses setuptools wheel"
+ command "pip3 download -d #{install_dir}/.config/virtualenv/app-data pip-licenses setuptools wheel"
end
build do