Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
python-poetry
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
python-poetry
Commits
6e2cc4f7
Unverified
Commit
6e2cc4f7
authored
Apr 02, 2018
by
Sébastien Eustace
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix installation script for Python <=3.5
parent
6945ed72
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
get-poetry.py
+4
-4
No files found.
get-poetry.py
View file @
6e2cc4f7
...
@@ -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
()
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment