for 'plain' python packages mgar will build the python modules for all known python versions automaticly. Simply use

CATEGORIES = python
in the gar recipe.

But how it is for packages which deliver python bindings like NET-SNMP or gobject?

asked 04 Dec '14, 14:12

cgrzemba's gravatar image

cgrzemba ♦♦
6091318
accept rate: 9%


In the case you can not use CATEGORIES = python you have to add to the recipe:

EXTRA_MODULATORS += PYTHON_VERSION
MODULATIONS_PYTHON_VERSION = 2.6 2.7
# We need 64 bit just once as it is without python anyway
SKIP_MODULATIONS += isa-sparcv9-python_version-2.7
SKIP_MODULATIONS += isa-amd64-python_version-2.7
PYTHON = $(bindir)/python$(PYTHON_VERSION)
MERGE_SCRIPTS_isa-default-python_version-2.6 += copy-all
MERGE_SCRIPTS_isa-default-python_version-2.7 += copy-all
MERGE_SCRIPTS_isa-default64-python_version-2.6 += copy-relocated-only
MERGE_DIRS_isa-default64-python_version-2.6 += $(libdir)
permanent link

answered 04 Dec '14, 14:16

cgrzemba's gravatar image

cgrzemba ♦♦
6091318
accept rate: 9%

edited 04 Dec '14, 14:20

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×3

question asked: 04 Dec '14, 14:12

question was seen: 3,740 times

last updated: 04 Dec '14, 14:20

powered by OSQA