Fix python recipe folder with the right python folder (python2 or python3) #363 (#364)

This commit is contained in:
Benoît HERVIER 2019-09-16 19:53:15 +02:00 committed by Mathieu Virbel
parent 178c696879
commit ee7abed8dc

View file

@ -2,6 +2,7 @@
import sys import sys
from toolchain import Recipe from toolchain import Recipe
import logging import logging
from os.path import join
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
@ -23,5 +24,6 @@ class PythonAliasRecipe(Recipe):
sys.exit(1) sys.exit(1)
if python: if python:
self.depends = [python] self.depends = [python]
self.recipe_dir = join(ctx.root_dir, "recipes", python)
recipe = PythonAliasRecipe() recipe = PythonAliasRecipe()