~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Alexander Belchenko
  • Date: 2006-07-13 05:43:34 UTC
  • mto: (1861.2.1 installer)
  • mto: This revision was merged to the branch mainline in revision 1906.
  • Revision ID: bialix@ukr.net-20060713054334-4afffc450675f46c
setup.py:
- make 3 branches of setup (standard, py2exe, bdist_wininst)
- exclude Tkinter and medusa from py2exe build

Show diffs side-by-side

added added

removed removed

Lines of Context:
129
129
## Setup
130
130
########################
131
131
 
132
 
if not ('py2exe' in sys.argv):
133
 
    # std setup
134
 
    ARGS = {'scripts': ['bzr'],
135
 
            'data_files': [('man/man1', ['bzr.1'])],
 
132
if 'bdist_wininst' in sys.argv:
 
133
    # python's distutils-based win32 installer
 
134
    ARGS = {'scripts': ['bzr', 'tools/win32/bzr-win32-bdist-postinstall.py'],
136
135
            # install the txt files from bzrlib.doc.api.
137
136
            'package_data': {'bzrlib': ['doc/api/*.txt']},
138
137
           }
139
138
 
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
 
    
149
139
    ARGS.update(META_INFO)
150
140
    ARGS.update(BZRLIB)
151
 
 
152
 
    print ARGS
153
141
    
154
142
    setup(**ARGS)
155
143
 
156
 
else:
 
144
elif 'py2exe' in sys.argv:
157
145
    # py2exe setup
158
146
    import py2exe
159
147
 
182
170
                                    )
183
171
    options_list = {"py2exe": {"packages": BZRLIB['packages'] +
184
172
                                           ['elementtree'],
 
173
                               "excludes": ["Tkinter", "medusa"],
185
174
                               "dist_dir": "win32_bzr.exe",
186
175
                              },
187
176
                   }
191
180
                   'tools/bzr_test_dependencies.py',
192
181
                  ],
193
182
          zipfile='lib/library.zip')
 
183
 
 
184
else:
 
185
    # std setup
 
186
    ARGS = {'scripts': ['bzr'],
 
187
            'data_files': [('man/man1', ['bzr.1'])],
 
188
            # install the txt files from bzrlib.doc.api.
 
189
            'package_data': {'bzrlib': ['doc/api/*.txt']},
 
190
            'cmdclass': {'build': bzr_build,
 
191
                         'install_scripts': my_install_scripts,
 
192
                        },
 
193
           }
 
194
    
 
195
    ARGS.update(META_INFO)
 
196
    ARGS.update(BZRLIB)
 
197
 
 
198
    setup(**ARGS)
 
199