~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Lukáš Lalinský
  • Date: 2007-12-17 17:28:25 UTC
  • mfrom: (3120 +trunk)
  • mto: This revision was merged to the branch mainline in revision 3123.
  • Revision ID: lalinsky@gmail.com-20071217172825-tr3pqm1mhvs3gwnn
Merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
PKG_DATA = {# install files from selftest suite
31
31
            'package_data': {'bzrlib': ['doc/api/*.txt',
32
32
                                        'tests/test_patches_data/*',
 
33
                                        'help_topics/en/*.txt',
33
34
                                       ]},
34
35
           }
35
36
 
236
237
        for root, dirs, files in os.walk('doc'):
237
238
            r = []
238
239
            for f in files:
239
 
                if os.path.splitext(f)[1] in ('.html', '.css'):
 
240
                if os.path.splitext(f)[1] in ('.html','.css','.png','.pdf'):
240
241
                    r.append(os.path.join(root, f))
241
242
            if r:
242
243
                relative = root[4:]
304
305
    # so we need to explicitly add all package
305
306
    additional_packages.append('email')
306
307
 
 
308
    # text files for help topis
 
309
    import glob
 
310
    text_topics = glob.glob('bzrlib/help_topics/en/*.txt')
 
311
 
307
312
    options_list = {"py2exe": {"packages": BZRLIB['packages'] +
308
313
                                           additional_packages,
309
314
                               "excludes": ["Tkinter", "medusa", "tools"],
314
319
          console=[target,
315
320
                   'tools/win32/bzr_postinstall.py',
316
321
                  ],
317
 
          zipfile='lib/library.zip')
 
322
          zipfile='lib/library.zip',
 
323
          data_files=[('lib/help_topics/en', text_topics)],
 
324
          )
318
325
 
319
326
else:
320
327
    # ad-hoc for easy_install