You need to sign in or sign up before continuing.
Commit 6e2cc4f7 by Sébastien Eustace

Fix installation script for Python <=3.5

parent 6945ed72
...@@ -128,7 +128,7 @@ class Installer: ...@@ -128,7 +128,7 @@ class Installer:
metadata['releases'].keys(), metadata['releases'].keys(),
key=lambda r: ( key=lambda r: (
'.'.join(self.VERSION_REGEX.match(r).groups()[:3]), '.'.join(self.VERSION_REGEX.match(r).groups()[:3]),
0 if self.VERSION_REGEX.match(r).group(5) else 1 self.VERSION_REGEX.match(r).group(5)
) )
) )
...@@ -162,7 +162,7 @@ class Installer: ...@@ -162,7 +162,7 @@ class Installer:
print('Installing version: ' + colorize('info', version)) print('Installing version: ' + colorize('info', version))
return self.install(version) #return self.install(version)
def install(self, version): def install(self, version):
# Most of the work will be delegated to pip # Most of the work will be delegated to pip
...@@ -172,7 +172,7 @@ class Installer: ...@@ -172,7 +172,7 @@ class Installer:
print(' - Getting dependencies') print(' - Getting dependencies')
self.call( self.call(
'pip', 'install', 'poetry=={}'.format(version), 'pip', 'install', 'poetry=={}'.format(version),
'--target', dist '--target', str(dist)
) )
print(' - Vendorizing dependencies') print(' - Vendorizing dependencies')
...@@ -256,4 +256,4 @@ def main(): ...@@ -256,4 +256,4 @@ def main():
if __name__ == '__main__': if __name__ == '__main__':
main() sys.exit(main())
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment