Commit fb9ceeec by Sébastien Eustace

Make installer work for the linux2 platform

parent 964ed319
...@@ -486,9 +486,13 @@ class Installer: ...@@ -486,9 +486,13 @@ class Installer:
def _make_lib(self, version): def _make_lib(self, version):
# We get the payload from the remote host # We get the payload from the remote host
platform = sys.platform
if platform == "linux2":
platform = "linux"
url = self._base_url + "{}/".format(version) url = self._base_url + "{}/".format(version)
name = "poetry-{}-{}.tar.gz".format(version, sys.platform) name = "poetry-{}-{}.tar.gz".format(version, platform)
checksum = "poetry-{}-{}.sha256sum".format(version, sys.platform) checksum = "poetry-{}-{}.sha256sum".format(version, platform)
try: try:
r = urlopen(url + "{}".format(checksum)) r = urlopen(url + "{}".format(checksum))
......
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