File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed
crates/pixi-build-python/src Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -349,7 +349,7 @@ impl<P: ProjectModel + Sync> Protocol for PythonBuildBackend<P> {
349
349
. await ?;
350
350
let built_package = CondaBuiltPackage {
351
351
output_file : package,
352
- input_globs : input_globs ( ) ,
352
+ input_globs : input_globs ( params . editable ) ,
353
353
name : output. name ( ) . as_normalized ( ) . to_string ( ) ,
354
354
version : output. version ( ) . to_string ( ) ,
355
355
build : build_string. to_string ( ) ,
@@ -367,13 +367,12 @@ impl<P: ProjectModel + Sync> Protocol for PythonBuildBackend<P> {
367
367
/// has a different way of determining the input globs than hatch etc.
368
368
///
369
369
/// However, lets take everything in the directory as input for now
370
- fn input_globs ( ) -> Vec < String > {
371
- vec ! [
370
+ fn input_globs ( editable : bool ) -> Vec < String > {
371
+ let mut globs : Vec < _ > = vec ! [
372
372
// Source files
373
- "**/*.py" ,
374
- "**/*.pyx" ,
375
373
"**/*.c" ,
376
374
"**/*.cpp" ,
375
+ "**/*.rs" ,
377
376
"**/*.sh" ,
378
377
// Common data files
379
378
"**/*.json" ,
@@ -401,7 +400,14 @@ fn input_globs() -> Vec<String> {
401
400
]
402
401
. iter ( )
403
402
. map ( |s| s. to_string ( ) )
404
- . collect ( )
403
+ . collect ( ) ;
404
+
405
+ if !editable {
406
+ globs. push ( "**/*.py" . to_string ( ) ) ;
407
+ globs. push ( "**/*.pyx" . to_string ( ) ) ;
408
+ }
409
+
410
+ globs
405
411
}
406
412
407
413
pub struct PythonBuildBackendInstantiator {
You can’t perform that action at this time.
0 commit comments