Skip to content
This repository has been archived by the owner on Jul 9, 2021. It is now read-only.

Commit

Permalink
Increase platform agnosticism
Browse files Browse the repository at this point in the history
  • Loading branch information
feuGeneA committed Dec 17, 2019
1 parent 40d0233 commit cb7278e
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions python-packages/contract_wrappers/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,10 @@ def run(self):
rmtree(".mypy_cache", ignore_errors=True)
rmtree(".tox", ignore_errors=True)
rmtree(".pytest_cache", ignore_errors=True)
rmtree("src/0x_contract_wrappers.egg-info", ignore_errors=True)
rmtree(
path.join("src", "0x_contract_wrappers.egg-info"),
ignore_errors=True,
)
# generated files:
print("Removing src/zero_ex/contract_wrappers/*/__init__.py...")
for contract in glob(
Expand All @@ -114,7 +117,15 @@ def run(self):
)
):
try:
remove(f"src/zero_ex/contract_wrappers/{contract}/__init__.py")
remove(
path.join(
"src",
"zero_ex",
"contract_wrappers",
f"{contract}",
"__init__.py",
)
)
except FileNotFoundError:
pass

Expand Down

0 comments on commit cb7278e

Please sign in to comment.