obidistutils: create doc/sphinx dir if needed
This commit is contained in:
@ -29,6 +29,10 @@ try:
|
|||||||
|
|
||||||
|
|
||||||
def modifyDocScripts(self):
|
def modifyDocScripts(self):
|
||||||
|
try:
|
||||||
|
os.mkdir("doc/sphinx")
|
||||||
|
except:
|
||||||
|
pass
|
||||||
build_dir_file=open("doc/sphinx/build_dir.txt","w")
|
build_dir_file=open("doc/sphinx/build_dir.txt","w")
|
||||||
print(self.build_lib,file=build_dir_file)
|
print(self.build_lib,file=build_dir_file)
|
||||||
build_dir_file.close()
|
build_dir_file.close()
|
||||||
@ -92,13 +96,17 @@ try:
|
|||||||
ext.sources = self.substitute_sources(ext.name,ext.sources)
|
ext.sources = self.substitute_sources(ext.name,ext.sources)
|
||||||
|
|
||||||
self.check_extensions_list(self.extensions)
|
self.check_extensions_list(self.extensions)
|
||||||
|
|
||||||
|
print("pouic")
|
||||||
|
print(ext.sources)
|
||||||
|
print("pouac")
|
||||||
|
|
||||||
for ext in self.extensions:
|
for ext in self.extensions:
|
||||||
log.info("%s :-> %s",ext.name,ext.sources)
|
log.info("%s :-> %s",ext.name,ext.sources)
|
||||||
ext.sources = self.cython_sources(ext.sources, ext)
|
ext.sources = self.cython_sources(ext.sources, ext)
|
||||||
self.build_extension(ext)
|
self.build_extension(ext)
|
||||||
|
|
||||||
def build_extensions(self):
|
def build_extensions(self): # TODO what?? double? is it supposed to be build_extension?
|
||||||
if hasattr(self, 'compiler'):
|
if hasattr(self, 'compiler'):
|
||||||
_customize_compiler(self.compiler)
|
_customize_compiler(self.compiler)
|
||||||
if hasattr(self, 'shlib_compiler'):
|
if hasattr(self, 'shlib_compiler'):
|
||||||
|
Reference in New Issue
Block a user