1
0
mirror of https://github.com/ultrajson/ultrajson.git synced 2024-11-23 16:42:10 +01:00

do not forcefully remove the build directory manually

this fixes issue #179.
setuptools should itself know when to use cache or create a
new build... however if someone wants to override that, it's
still possible but forcefully doing that on whatever
setuptools target will (and does) introduce problems.

Build directory should be cleaned up via the clean sub-command.
examples:
- clean up temp:
  python setup.py clean
- clean up whole build dir
  python setup.py clean -a

Or if somebody wants to, the build dir could be removed on the
shell.
This commit is contained in:
anthraxx 2016-01-26 14:34:08 +01:00
parent 3723f573d3
commit 3943517711

@ -3,7 +3,6 @@ try:
except ImportError:
from distutils.core import setup, Extension
import distutils.sysconfig
import shutil
import os.path
import re
import sys
@ -22,11 +21,6 @@ Programming Language :: Python :: 3
Programming Language :: Python :: 3.2
""".splitlines()))
try:
shutil.rmtree("./build")
except(OSError):
pass
module1 = Extension('ujson',
sources = ['./python/ujson.c',
'./python/objToJSON.c',