1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-09-20 01:06:17 +02:00

Create a missing directory when setup.py is called with --build-lib

This commit is contained in:
Daniel Mach 2022-08-05 12:58:17 +02:00
parent 4423a5d4a9
commit 6c602f23e8

View File

@ -19,6 +19,10 @@ class build_osc(build.build):
def build_man_page(self):
"""
"""
try:
os.makedirs(self.build_base)
except OSError:
pass
man_path = os.path.join(self.build_base, 'osc.1.gz')
distutils.log.info('generating %s' % man_path)
outfile = gzip.open(man_path, 'wt')