File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 3
3
import matplotlib
4
4
from setuptools import find_packages
5
5
from cx_Freeze import setup , Executable
6
+ import distutils
7
+ import opcode
6
8
7
9
8
10
# Read in long description and requirements.
23
25
24
26
# Detetermine platform and define setup.
25
27
if sys .platform == 'win32' :
28
+ distutils_path = os .path .join (os .path .dirname (opcode .__file__ ), 'distutils' )
26
29
setup (
27
30
name = name ,
28
31
version = version ,
39
42
'includes' : [
40
43
'matplotlib' ,
41
44
'serial' ,
42
- 'distutils' ,
43
45
'matplotlib.backends.backend_qt5agg' ],
44
46
'include_files' : [
45
47
'static' ,
46
48
'openroast/views' ,
47
49
'openroast/controllers' ,
48
50
'LICENSE' ,
49
- (matplotlib .get_data_path (), 'mpl-data' )],
51
+ (matplotlib .get_data_path (), 'mpl-data' ),
52
+ (distutils_path , 'distutils' )],
53
+ 'excludes' : ['distutils' ],
50
54
'icon' : 'static/icons/openroast-windows.ico' ,
51
55
'include_msvcr' : True
52
56
},
You can’t perform that action at this time.
0 commit comments