/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Jelmer Vernooij
  • Date: 2019-06-03 23:48:08 UTC
  • mfrom: (7316 work)
  • mto: This revision was merged to the branch mainline in revision 7328.
  • Revision ID: jelmer@jelmer.uk-20190603234808-15yk5c7054tj8e2b
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
65
65
    'install_requires': [
66
66
        'configobj',
67
67
        'six>=1.9.0',
 
68
        'patiencediff',
68
69
        # Technically, Breezy works without these two dependencies too. But there's
69
70
        # no way to enable them by default and let users opt out.
70
71
        'fastimport>=0.9.8',
149
150
                script_path = self._quoted_path(os.path.join(scripts_dir,
150
151
                                                             "brz"))
151
152
                python_exe = self._quoted_path(sys.executable)
152
 
                args = self._win_batch_args()
153
 
                batch_str = "@%s %s %s" % (python_exe, script_path, args)
 
153
                batch_str = "@%s %s %%*" % (python_exe, script_path)
154
154
                batch_path = os.path.join(self.install_dir, "brz.bat")
155
155
                with open(batch_path, "w") as f:
156
156
                    f.write(batch_str)
164
164
            return '"' + path + '"'
165
165
        else:
166
166
            return path
167
 
 
168
 
    def _win_batch_args(self):
169
 
        from breezy.win32utils import winver
170
 
        if winver == 'Windows NT':
171
 
            return '%*'
172
 
        else:
173
 
            return '%1 %2 %3 %4 %5 %6 %7 %8 %9'
174
167
#/class my_install_scripts
175
168
 
176
169
 
334
327
    add_cython_extension('breezy.bzr._dirstate_helpers_pyx')
335
328
    add_cython_extension('breezy._readdir_pyx')
336
329
add_cython_extension('breezy.bzr._chk_map_pyx')
337
 
ext_modules.append(Extension('breezy._patiencediff_c',
338
 
                             ['breezy/_patiencediff_c.c']))
339
330
add_cython_extension('breezy.bzr._btree_serializer_pyx')
340
331
 
341
332