@@ -58,9 +58,12 @@ def shell(args, env=None, cwd=None):
58
58
before_build_prepared = prepare_command (before_build , python = python , pip = pip )
59
59
shell (shlex .split (before_build_prepared ), env = env )
60
60
61
+ # install the package first to take care of dependencies
62
+ shell ([pip , 'install' , project_dir ], env = env )
63
+
61
64
# build the wheel to temp dir
62
65
temp_wheel_dir = '/tmp/tmpwheel%s' % config .version
63
- shell ([pip , 'wheel' , project_dir , '-w' , temp_wheel_dir ], env = env )
66
+ shell ([pip , 'wheel' , project_dir , '-w' , temp_wheel_dir , '--no-deps' ], env = env )
64
67
temp_wheel = glob (temp_wheel_dir + '/*.whl' )[0 ]
65
68
66
69
if temp_wheel .endswith ('none-any.whl' ):
@@ -72,8 +75,9 @@ def shell(args, env=None, cwd=None):
72
75
# rebuild the wheel with shared libraries included and place in output dir
73
76
shell (['delocate-wheel' , '-w' , output_dir , temp_wheel ], env = env )
74
77
75
- # install the wheel
76
- shell ([pip , 'install' , package_name , '--no-index' , '--find-links' , output_dir ], env = env )
78
+ # now install the package from the generated wheel
79
+ shell ([pip , 'install' , package_name , '--upgrade' , '--force-reinstall' ,
80
+ '--no-deps' , '--no-index' , '--find-links' , output_dir ], env = env )
77
81
78
82
# test the wheel
79
83
if test_requires :
0 commit comments