~guillaume-simon/mysql-utilities/mysql-utilities

« back to all changes in this revision

Viewing changes to support/distribution/commands/bdist.py

  • Committer: Israel Gomez
  • Date: 2013-10-28 19:53:57 UTC
  • Revision ID: israel.gomez@oracle.com-20131028195357-z1vi19c1t6upjk7d
BUG#17347424 : No MySQL Utilities package for MAC OS X

This patch adds a distribution command to build a GPL or Commercial 
distribution package for Mac OS X, also provides the option of encapsulate 
the package in an Apple Disk Image (dmg file).

v2b

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
        self.plat_name = ''
72
72
        self.formats = None
73
73
        self.archive_files = None
 
74
        self.man_root = None
 
75
        self.man_prefix = None
 
76
        self.bin_install_dir = None
74
77
 
75
78
    def finalize_options(self):
76
79
        """Finalize the options"""
206
209
        #install MAN pages
207
210
        install_man = self.reinitialize_command('install_man',
208
211
                                                reinit_subcommands=1)
209
 
        install_man.root = self.bdist_dir # + "/usr/bin/"
 
212
        if self.man_root:
 
213
            install_man.root = self.man_root
 
214
        else:
 
215
            install_man.root = self.bdist_dir # + "/usr/bin/"
 
216
 
 
217
        if self.man_prefix:
 
218
            install_man.prefix = self.man_prefix
210
219
 
211
220
        log.info("installing to %s" % self.bdist_dir)
212
221
        self.run_command('install_man')
219
228
        #install_scripts.root = self.bdist_dir # + "/usr/bin/"
220
229
        #install_scripts.build_dir = self.bdist_dir
221
230
        scripts_instal_dir = os.path.join(self.bdist_dir, "usr", "bin") #scripts_dir
 
231
        if self.bin_install_dir:
 
232
            scripts_instal_dir = self.bin_install_dir
222
233
        install_scripts.install_dir = scripts_instal_dir 
223
234
        #install_scripts.get_outputs()
224
235