##// END OF EJS Templates
allow cython cache dir to be deleted...
MinRK -
Show More
@@ -278,7 +278,20 b' class CythonMagics(Magics):'
278 self._so_ext = self._get_build_extension().get_ext_filename('')
278 self._so_ext = self._get_build_extension().get_ext_filename('')
279 return self._so_ext
279 return self._so_ext
280
280
281 def _clear_distutils_mkpath_cache(self):
282 """clear distutils mkpath cache
283
284 prevents distutils from skipping re-creation of dirs that have been removed
285 """
286 try:
287 from distutils.dir_util import _path_created
288 except ImportError:
289 pass
290 else:
291 _path_created.clear()
292
281 def _get_build_extension(self):
293 def _get_build_extension(self):
294 self._clear_distutils_mkpath_cache()
282 dist = Distribution()
295 dist = Distribution()
283 config_files = dist.find_config_files()
296 config_files = dist.find_config_files()
284 try:
297 try:
General Comments 0
You need to be logged in to leave comments. Login now