Skip to content

Commit

Permalink
Fixed setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
fedelemantuano committed May 13, 2018
1 parent 71b0b2e commit a05f9cc
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@

import os
import runpy
import subprocess
import sys
from setuptools import setup, find_packages
from setuptools.command.install import install as SetupToolsInstall

Expand All @@ -34,17 +36,17 @@
with open(os.path.join(current, 'requirements.txt')) as f:
requirements = f.read().splitlines()

with open(os.path.join(current, 'requirements_editable.txt')) as f:
requirements_editable = f.read().splitlines()


class Install(SetupToolsInstall):
"""Customized setuptools install command which uses pip. """

def run(self, *args, **kwargs):
import pip
pip.main(["install", "-e"] + requirements_editable)
pip.main(['install'] + requirements)
subprocess.check_call([
sys.executable, '-m',
'pip', 'install', '-r', "requirements_editable.txt"])
subprocess.check_call([
sys.executable, '-m',
'pip', 'install', '-r', "requirements.txt"])
SetupToolsInstall.run(self, *args, **kwargs)


Expand Down

0 comments on commit a05f9cc

Please sign in to comment.