@@ -573,26 +573,20 @@ function write_markdown_file(
573
573
574
574
function copy_python_wheels ( ) : void {
575
575
// Copy the built wheel files to the static directory.
576
- const wheel_dirs = [
577
- "../metadata-ingestion/dist" ,
578
- "../metadata-ingestion-modules/airflow-plugin/dist" ,
579
- "../metadata-ingestion-modules/dagster-plugin/dist" ,
580
- "../metadata-ingestion-modules/prefect-plugin/dist" ,
581
- "../metadata-ingestion-modules/gx-plugin/dist" ,
582
- ] ;
576
+ // Everything is copied to the python-build directory first, so
577
+ // we just need to copy from there.
578
+ const wheel_dir = "../python-build/wheels" ;
583
579
584
580
const wheel_output_directory = path . join ( STATIC_DIRECTORY , "wheels" ) ;
585
581
fs . mkdirSync ( wheel_output_directory , { recursive : true } ) ;
586
582
587
- for ( const wheel_dir of wheel_dirs ) {
588
- const wheel_files = fs . readdirSync ( wheel_dir ) ;
589
- for ( const wheel_file of wheel_files ) {
590
- const src = path . join ( wheel_dir , wheel_file ) ;
591
- const dest = path . join ( wheel_output_directory , wheel_file ) ;
583
+ const wheel_files = fs . readdirSync ( wheel_dir ) ;
584
+ for ( const wheel_file of wheel_files ) {
585
+ const src = path . join ( wheel_dir , wheel_file ) ;
586
+ const dest = path . join ( wheel_output_directory , wheel_file ) ;
592
587
593
- // console.log(`Copying artifact ${src} to ${dest}...`);
594
- fs . copyFileSync ( src , dest ) ;
595
- }
588
+ // console.log(`Copying artifact ${src} to ${dest}...`);
589
+ fs . copyFileSync ( src , dest ) ;
596
590
}
597
591
}
598
592
0 commit comments