Commit 4d21c157 authored by Myle Ott's avatar Myle Ott Committed by Facebook Github Bot
Browse files

Have `setup.py clean` remove compiled Cython files

Summary: Pull Request resolved: https://github.com/fairinternal/fairseq-py/pull/907

Differential Revision: D18480215

Pulled By: myleott

fbshipit-source-id: b02002f631f6d47380f309d4f464bd135d623280
parent 27568a7e
...@@ -97,6 +97,13 @@ else: ...@@ -97,6 +97,13 @@ else:
dependency_links = [] dependency_links = []
if 'clean' in sys.argv[1:]:
# Source: https://bit.ly/2NLVsgE
print("deleting Cython files...")
import subprocess
subprocess.run(['rm -f fairseq/*.so fairseq/**/*.so'], shell=True)
setup( setup(
name='fairseq', name='fairseq',
version='0.8.0', version='0.8.0',
......
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