File tree Expand file tree Collapse file tree 4 files changed +27
-4
lines changed Expand file tree Collapse file tree 4 files changed +27
-4
lines changed Original file line number Diff line number Diff line change 4
4
/dist
5
5
/build
6
6
/* .egg-info
7
+ Cargo.lock
8
+ /example /extensions /target /
9
+ /example /* .egg-info
Original file line number Diff line number Diff line change
1
+ CHANGES
2
+ =======
3
+
4
+ 0.2 (2017-03-08)
5
+ ----------------
6
+
7
+ - Fix bdist_egg and bdist_wheel commands
8
+
9
+
10
+ 0.1 (2017-03-08)
11
+ ----------------
12
+
13
+ - Initial release
Original file line number Diff line number Diff line change 1
1
from setuptools import setup , find_packages
2
2
3
- version = '0.1 '
3
+ version = '0.2 '
4
4
5
5
6
6
setup (
11
11
url = "https://github.com/fafhrd91/setuptools-rust" ,
12
12
keywords = 'distutils setuptools rust' ,
13
13
description = "Setuptools rust extension plugin" ,
14
- long_description = open ('README.rst' ).read (),
14
+ long_description = '\n \n ' .join (
15
+ (open ('README.rst' ).read (), open ('CHANGES.rst' ).read ())),
15
16
license = 'MIT' ,
16
17
packages = ['setuptools_rust' ],
17
18
zip_safe = True ,
Original file line number Diff line number Diff line change 9
9
from distutils .command .build import build as Build
10
10
from distutils .command .build_ext import build_ext
11
11
from distutils .command .install_lib import install_lib
12
- from setuptools import setup , Extension
13
- from setuptools .command import develop
12
+ from setuptools import dist , setup , Extension
13
+ from setuptools .command import develop , bdist_egg
14
14
15
15
__all__ = ('RustExtension' , 'build_rust' )
16
16
17
17
18
18
# allow to use 'rust_extensions' parameter for setup() call
19
19
Distribution .rust_extensions = ()
20
20
21
+ def has_ext_modules (self ):
22
+ return (self .ext_modules and len (self .ext_modules ) > 0 or
23
+ self .rust_extensions and len (self .rust_extensions ) > 0 )
24
+
25
+ Distribution .has_ext_modules = has_ext_modules
26
+ #dist.Distribution.has_ext_modules = has_ext_modules
21
27
22
28
# add support for build_rust sub0command
23
29
def has_rust_extensions (self ):
You can’t perform that action at this time.
0 commit comments