Class: FPM::Cookery::Package::Python

Inherits:
Package
  • Object
show all
Defined in:
lib/fpm/cookery/package/python.rb

Instance Attribute Summary

Attributes inherited from Package

#config, #fpm, #recipe

Instance Method Summary collapse

Methods inherited from Package

#add_script, #cleanup, #convert, #epoch=, #initialize, #maintainer=, #vendor=, #version=

Constructor Details

This class inherits a constructor from FPM::Cookery::Package::Package

Instance Method Details

#fpm_objectObject



8
9
10
# File 'lib/fpm/cookery/package/python.rb', line 8

def fpm_object
  FPM::Package::Python.new
end

#package_inputObject



19
20
21
# File 'lib/fpm/cookery/package/python.rb', line 19

def package_input
  fpm.input(recipe.name)
end

#package_setupObject



12
13
14
15
16
17
# File 'lib/fpm/cookery/package/python.rb', line 12

def package_setup
  fpm.version = recipe.version

  fpm.attributes[:python_fix_name?] = true
  fpm.attributes[:python_fix_dependencies?] = true
end