Merge pull request #337 from learnleapfly/versions_as_strings

Versions as strings
This commit is contained in:
Mathieu Virbel 2019-01-13 23:27:59 +01:00 committed by GitHub
commit 93edfa2a6a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 5 deletions

View file

@ -14,7 +14,7 @@ class Hostpython2Recipe(Recipe):
def init_with_ctx(self, ctx):
super(Hostpython2Recipe, self).init_with_ctx(ctx)
self.set_hostpython(self, 2.7)
self.set_hostpython(self, "2.7")
self.ctx.so_suffix = ".so"
self.ctx.hostpython = join(self.ctx.dist_dir, "hostpython2", "bin", "python")
self.ctx.hostpgen = join(self.ctx.dist_dir, "hostpython2", "bin", "pgen")

View file

@ -14,7 +14,7 @@ class Hostpython3Recipe(Recipe):
def init_with_ctx(self, ctx):
super(Hostpython3Recipe, self).init_with_ctx(ctx)
self.set_hostpython(self, 3.7)
self.set_hostpython(self, "3.7")
self.ctx.so_suffix = ".cpython-37m-darwin.so"
self.ctx.hostpython = join(self.ctx.dist_dir, "hostpython3", "bin", "python")
self.ctx.hostpgen = join(self.ctx.dist_dir, "hostpython3", "bin", "pgen")

View file

@ -14,7 +14,7 @@ class Python2Recipe(Recipe):
def init_with_ctx(self, ctx):
super(Python2Recipe, self).init_with_ctx(ctx)
self.set_python(self, 2.7)
self.set_python(self, "2.7")
ctx.python_ver_dir = "python2.7"
ctx.python_prefix = join(ctx.dist_dir, "root", "python2")
ctx.site_packages_dir = join(

View file

@ -14,7 +14,7 @@ class Python3Recipe(Recipe):
def init_with_ctx(self, ctx):
super(Python3Recipe, self).init_with_ctx(ctx)
self.set_python(self, 3.7)
self.set_python(self, "3.7")
ctx.python_ver_dir = "python3.7"
ctx.python_prefix = join(ctx.dist_dir, "root", "python3")
ctx.site_packages_dir = join(

View file

@ -655,7 +655,7 @@ class Recipe(object):
hostpython))
print("ERROR: You can have only one hostpython version compiled")
sys.exit(1)
self.ctx.python_major = int(version)
self.ctx.python_major = version.split('.')[0]
self.ctx.hostpython_ver = version
self.ctx.hostpython_recipe = instance