← Back to team overview

openlp-core team mailing list archive

Re: [Merge] lp:~raoul-snyman/openlp/wix-packaging into lp:openlp/packaging

 

Review: Needs Fixing

See inline

Diff comments:

> 
> === modified file 'builders/windows-builder.py'
> --- builders/windows-builder.py	2019-03-13 21:00:05 +0000
> +++ builders/windows-builder.py	2019-05-16 04:37:34 +0000
> @@ -270,13 +358,11 @@
>          super().setup_system_paths()
>          self.python_root = os.path.dirname(self.python)
>          self.site_packages = os.path.join(self.python_root, 'Lib', 'site-packages')
> -        # Default program_files to 'Program Files (x86)' - the folder for 32-bit programs on 64-bit systems, if that
> -        # does not exists the host system is 32-bit so fallback to 'Program Files'.
> -        self.program_files = os.getenv('PROGRAMFILES(x86)')
> -        if not self.program_files:
> -            self.program_files = os.getenv('PROGRAMFILES')
> +        self.program_files = os.getenv('PROGRAMFILES')
> +        self.program_files_x86 = os.getenv('PROGRAMFILES(x86)')

This will fail on a 32-bit system. Not much of a chance anyone will do builds on a 32-bit system, but we should be aware.
Also note that in the copy extra files method at the bottom, you need to change self.program_files to self.program_filew_x86.

>          self._print_verbose('   {:.<20}: {}'.format('site packages: ', self.site_packages))
>          self._print_verbose('   {:.<20}: {}'.format('program files: ', self.program_files))
> +        self._print_verbose('   {:.<20}: {}'.format('program files x86: ', self.program_files_x86))
>  
>      def setup_paths(self):
>          """


-- 
https://code.launchpad.net/~raoul-snyman/openlp/wix-packaging/+merge/367013
Your team OpenLP Core is subscribed to branch lp:openlp/packaging.


References