Skip to content

Commit

Permalink
Added force build on install
Browse files Browse the repository at this point in the history
  • Loading branch information
cvalenzu committed Dec 16, 2016
1 parent 225663b commit 298b5d3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ def check_build():
return True

def build_and_move(path):
print("Building: {}".format(path))
cwd = os.getcwd()
rel_module = path
module_dir = os.path.join(cwd, rel_module)
Expand All @@ -32,8 +33,12 @@ def build_and_move(path):


def setup_package():
if "--force" in sys.argv:
run_build = True
else:
run_build = False
#Building packages
if check_build():
if check_build() or run_build:
build_and_move('acalib/cupid')
build_and_move('acalib/core/_morph')

Expand Down Expand Up @@ -65,4 +70,5 @@ def setup_package():




setup_package()

0 comments on commit 298b5d3

Please sign in to comment.