mirror of https://github.com/explosion/spaCy.git
cleanup tmp dir
This commit is contained in:
parent
7f7299cafb
commit
e00f87c793
7
build.py
7
build.py
|
@ -2,6 +2,7 @@
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
import shutil
|
||||||
from subprocess import call
|
from subprocess import call
|
||||||
|
|
||||||
|
|
||||||
|
@ -38,14 +39,14 @@ elif install_mode == 'setup-install':
|
||||||
x('python setup.py install')
|
x('python setup.py install')
|
||||||
|
|
||||||
elif install_mode == 'setup-develop':
|
elif install_mode == 'setup-develop':
|
||||||
x('python setup.py develop')
|
|
||||||
x('pip install -e .')
|
x('pip install -e .')
|
||||||
|
|
||||||
x('pip install pytest')
|
x('pip install pytest')
|
||||||
x('pip list')
|
x('pip list')
|
||||||
|
|
||||||
if not os.path.exists('tmp'):
|
if os.path.exists('tmp'):
|
||||||
os.mkdir('tmp')
|
shutil.rmtree('tmp')
|
||||||
|
os.mkdir('tmp')
|
||||||
|
|
||||||
try:
|
try:
|
||||||
old = os.getcwd()
|
old = os.getcwd()
|
||||||
|
|
Loading…
Reference in New Issue