File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,11 @@ impl ModuleWriter for SDistWriter {
5252
5353 let target = target. as_ref ( ) ;
5454 if self . exclude ( target) {
55+ eprintln ! (
56+ "⚠️ Warning: {} was excluded from the archive by the target path in the archive instead of the source path on the filesystem" ,
57+ target. display( ) ,
58+ ) ;
59+ eprintln ! ( "\n This behavior will be deprecated in future versions of maturin" ) ;
5560 return Ok ( ( ) ) ;
5661 }
5762
Original file line number Diff line number Diff line change @@ -40,8 +40,19 @@ impl ModuleWriter for WheelWriter {
4040 mut data : impl Read ,
4141 executable : bool ,
4242 ) -> Result < ( ) > {
43+ if let Some ( source) = source {
44+ if self . exclude ( source) {
45+ return Ok ( ( ) ) ;
46+ }
47+ }
48+
4349 let target = target. as_ref ( ) ;
4450 if self . exclude ( target) {
51+ eprintln ! (
52+ "⚠️ Warning: {} was excluded from the archive by the target path in the archive instead of the source path on the filesystem" ,
53+ target. display( ) ,
54+ ) ;
55+ eprintln ! ( "\n This behavior will be deprecated in future versions of maturin" ) ;
4556 return Ok ( ( ) ) ;
4657 }
4758
You can’t perform that action at this time.
0 commit comments