~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Alexander Belchenko
  • Date: 2006-06-29 09:15:47 UTC
  • mto: (1860.1.1 win32.installer)
  • mto: This revision was merged to the branch mainline in revision 1906.
  • Revision ID: bialix@ukr.net-20060629091547-540fc31b864d5b26
resurrected python's distutils based installer for win32

Show diffs side-by-side

added added

removed removed

Lines of Context:
132
132
if not ('py2exe' in sys.argv):
133
133
    # std setup
134
134
    ARGS = {'scripts': ['bzr'],
135
 
            'cmdclass': {'build': bzr_build,
136
 
                         'install_scripts': my_install_scripts,
137
 
                        },
138
135
            'data_files': [('man/man1', ['bzr.1'])],
139
136
            # install the txt files from bzrlib.doc.api.
140
137
            'package_data': {'bzrlib': ['doc/api/*.txt']},
141
138
           }
 
139
 
 
140
    # for python-based installer we don't need to use custom cmdclasses
 
141
    if not ('bdist_wininst' in sys.argv):
 
142
        ARGS['cmdclass'] = {'build': bzr_build,
 
143
                            'install_scripts': my_install_scripts,
 
144
                           }
 
145
    else:
 
146
        # but need to add postinstall script
 
147
        ARGS['scripts'].append('tools/win32/bzr-win32-bdist-postinstall.py')
 
148
    
142
149
    ARGS.update(META_INFO)
143
150
    ARGS.update(BZRLIB)
 
151
 
 
152
    print ARGS
144
153
    
145
154
    setup(**ARGS)
146
155