~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Alexander Belchenko
  • Date: 2006-08-11 07:10:09 UTC
  • mto: (1711.2.119 jam-integration)
  • mto: This revision was merged to the branch mainline in revision 1915.
  • Revision ID: bialix@ukr.net-20060811071009-be2f4d5ebb59f64f
setup.py: need to install data files for selftest from bzrlib/tests/test_patched_data

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
                      ],
54
54
         }
55
55
 
 
56
PKG_DATA = {# install files from selftest suite
 
57
            'package_data': {'bzrlib': ['doc/api/*.txt',
 
58
                                        'tests/test_patches_data/*',
 
59
                                       ]},
 
60
           }
56
61
 
57
62
######################################################################
58
63
# Reinvocation stolen from bzr, we need python2.4 by virtue of bzr_man
155
160
    docs = glob.glob('doc/*.htm') + ['doc/default.css']
156
161
    # python's distutils-based win32 installer
157
162
    ARGS = {'scripts': ['bzr', 'tools/win32/bzr-win32-bdist-postinstall.py'],
158
 
            # install the txt files from bzrlib.doc.api.
159
 
            'package_data': {'bzrlib': ['doc/api/*.txt']},
160
163
            # help pages
161
164
            'data_files': [('Doc/Bazaar', docs)],
162
165
           }
163
166
 
164
167
    ARGS.update(META_INFO)
165
168
    ARGS.update(BZRLIB)
 
169
    ARGS.update(PKG_DATA)
166
170
    
167
171
    setup(**ARGS)
168
172
 
209
213
    # std setup
210
214
    ARGS = {'scripts': ['bzr'],
211
215
            'data_files': [('man/man1', ['bzr.1'])],
212
 
            # install the txt files from bzrlib.doc.api.
213
 
            'package_data': {'bzrlib': ['doc/api/*.txt']},
214
216
            'cmdclass': {'build': bzr_build,
215
217
                         'install_scripts': my_install_scripts,
216
218
                        },
218
220
    
219
221
    ARGS.update(META_INFO)
220
222
    ARGS.update(BZRLIB)
 
223
    ARGS.update(PKG_DATA)
221
224
 
222
225
    setup(**ARGS)