File tree Expand file tree Collapse file tree
python_template_cppjswasm Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# Changes here will be overwritten by Copier
2- _commit : 02f55bd
2+ _commit : faa8776
33_src_path : https://github.com/python-project-templates/base.git
4+ add_c_abi : false
45add_docs : true
56add_extension : cppjswasm
67add_pyodide : true
Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ import { node_modules_external } from "./tools/externals.mjs";
55import fs from "fs" ;
66import cpy from "cpy" ;
77
8+ const EXTENSION = "../python_template_cppjswasm/extension" ;
9+
810const BUNDLES = [
911 {
1012 entryPoints : [ "src/ts/index.ts" ] ,
@@ -25,7 +27,7 @@ async function build() {
2527 }
2628 }
2729 }
28- fs . rmSync ( "../python_template_cppjswasm/extension" , {
30+ fs . rmSync ( EXTENSION , {
2931 recursive : true ,
3032 force : true ,
3133 } ) ;
@@ -45,8 +47,8 @@ async function build() {
4547 await Promise . all ( BUNDLES . map ( bundle ) ) . catch ( ( ) => process . exit ( 1 ) ) ;
4648
4749 // Copy servable assets to python extension (exclude esm/)
48- fs . mkdirSync ( "../python_template_cppjswasm/extension" , { recursive : true } ) ;
49- await cpy ( "dist/**/*" , "../python_template_cppjswasm/extension" , {
50+ fs . mkdirSync ( EXTENSION , { recursive : true } ) ;
51+ await cpy ( "dist/**/*" , EXTENSION , {
5052 filter : ( file ) =>
5153 ! file . relativePath . startsWith ( "esm/" ) &&
5254 ! file . relativePath . startsWith ( "dist/esm/" ) ,
Original file line number Diff line number Diff line change 1+ class Example :
2+ stuff : str
3+
4+ def __init__ (self , value : str ) -> None : ...
5+
16def add (i : int , j : int ) -> int : ...
You can’t perform that action at this time.
0 commit comments