class PoisePython::PythonProviders::PortablePyPy3
Public Class Methods
default_inversion_options(node, resource)
click to toggle source
Calls superclass method
PoisePython::PythonProviders::Base::default_inversion_options
# File lib/poise_python/python_providers/portable_pypy3.rb, line 35 def self.default_inversion_options(node, resource) super.tap do |options| if resource.version && resource.version =~ /^(pypy3-)?5(\.\d)?/ # We need a different default base URL for pypy3.3 # This is the same as before but `/pypy3.3` as the prefix on the filename. basename = if $2 == '.2' || $2 == '.5' 'pypy3.3' else 'pypy3.5' end options['url'] = "https://bitbucket.org/squeaky/portable-pypy/downloads/#{basename}-%{version}-%{kernel}_%{machine}-portable.tar.bz2" end end end
Public Instance Methods
python_binary()
click to toggle source
# File lib/poise_python/python_providers/portable_pypy3.rb, line 50 def python_binary ::File.join(static_folder, 'bin', 'pypy') end
Private Instance Methods
install_python()
click to toggle source
# File lib/poise_python/python_providers/portable_pypy3.rb, line 56 def install_python install_static end
uninstall_python()
click to toggle source
# File lib/poise_python/python_providers/portable_pypy3.rb, line 60 def uninstall_python uninstall_static end