Skip to content

Commit 9d3ba52

Browse files
committed
build.py : Create minimal directory structure
1 parent 0df7cf5 commit 9d3ba52

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

build.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,9 @@ def walk( project, configs, buildDir ) :
417417
walk( project, configs, buildDir )
418418

419419
projectManifest.sort( key = operator.itemgetter( "name" ) )
420-
with open( os.path.join( buildDir, "doc", "licenses", "manifest.json" ), "w" ) as file :
420+
licenseDir = os.path.join( buildDir, "doc", "licenses" )
421+
os.makedirs( licenseDir, exist_ok = True )
422+
with open( os.path.join( licenseDir, "manifest.json" ), "w" ) as file :
421423
json.dump( projectManifest, file, indent = 4 )
422424

423425
rootName = os.path.basename( package ).replace( ".tar.gz", "" )
@@ -504,6 +506,7 @@ def walk( project, configs, buildDir ) :
504506
__checkConfigs( args.projects, configs )
505507

506508
buildDir = variables["buildDir"].format( **variables )
509+
os.makedirs( buildDir, exist_ok = True )
507510
__buildProjects( args.projects, configs, buildDir, args.cleanup )
508511

509512
if args.package :

0 commit comments

Comments
 (0)