use `os.mkdir(os.path.join(self.installdir, pylibdir))`