~brz/brz/rust

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Jelmer Vernooij
  • Date: 2020-12-25 17:47:23 UTC
  • Revision ID: jelmer@jelmer.uk-20201225174723-2r16jz08n1p2eph1
Add simple rust module.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
    sys.exit(1)
25
25
 
26
26
 
 
27
from setuptools_rust import Binding, RustExtension
 
28
 
 
29
 
27
30
# NOTE: The directory containing setup.py, whether run by 'python setup.py' or
28
31
# './setup.py' or the equivalent with another path, should always be at the
29
32
# start of the path, so this should find the right one...
88
91
# that are part of BREEZY here.
89
92
BREEZY = {}
90
93
 
 
94
BREEZY['rust_extensions'] = [RustExtension('breezy._simple_set_rust', binding=Binding.PyO3)]
 
95
BREEZY['zip_safe'] = False
 
96
 
91
97
PKG_DATA = {
92
98
    # install files from selftest suite
93
99
    'package_data': {'breezy': ['doc/api/*.txt',
239
245
        build_ext.initialize_options(self)
240
246
        self.allow_python_fallback = False
241
247
 
 
248
    ext_map = {}
 
249
 
242
250
    def run(self):
243
251
        try:
244
252
            build_ext.run(self)