Unverified Commit 6e2cc4f7 authored by Sébastien Eustace's avatar Sébastien Eustace
Browse files

Fix installation script for Python <=3.5

parent 6945ed72
Loading
Loading
Loading
Loading
+4 −4
Changes for get-poetry.py: 4 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -128,7 +128,7 @@ class Installer:
            metadata['releases'].keys(),
            key=lambda r: (
                '.'.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:

        print('Installing version: ' + colorize('info', version))

        return self.install(version)
        #return self.install(version)

    def install(self, version):
        # Most of the work will be delegated to pip
@@ -172,7 +172,7 @@ class Installer:
            print('  - Getting dependencies')
            self.call(
                'pip', 'install', 'poetry=={}'.format(version),
                '--target', dist
                '--target', str(dist)
            )

            print('  - Vendorizing dependencies')
@@ -256,4 +256,4 @@ def main():


if __name__ == '__main__':
    main()
    sys.exit(main())