Am 20.03.20 um 16:55 schrieb Damon Lynch:
> Hi Tobias,
> 
> Coincidentally I noticed that bug myself. The fix is this:
> 
> At or about line 228 in setup.py see the two lines starting with 'if
> not' that tests for the path:
> 
> class raphodo_sdist(sdist):
>     def run(self):
>         if not os.path.isdir('build'):
>             os.mkdir('build')
>         self.run_command('build_man_page')
>         self.run_command('build_icons')
>         self.run_command('build_translations')
>         sdist.run(self)
> 
> Please let me know if it's unclear. The next release will fix this problem.
> 
> Best,
> Damon

Hi Damon,

thanks for the hint, this brought me onto the right track. However, your
suggested fix did not solve the problem for me. I've had to apply this
code to make it work:

class raphodo_build(build):
    sub_commands = build.sub_commands + [
        ('build_man_page', None), ('build_icons', None),
        ('build_translations', None),
    ]

    def run(self):
        if not os.path.isdir('build'):
            os.mkdir('build')
        build.run(self)

Please note the new method "run".

Regards,
Tobias

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to