Skip to content

Commit

Permalink
Merge pull request #26 from ChainSafe/upstream-blstwrappy
Browse files Browse the repository at this point in the history
Upstream blst_wrap.py fixes
  • Loading branch information
dapplion authored Dec 22, 2020
2 parents a3acb20 + 2186191 commit c55d11e
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 72 deletions.
62 changes: 0 additions & 62 deletions blst_wrap.py

This file was deleted.

5 changes: 0 additions & 5 deletions src/scripts/buildBindings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ import {
findBindingsFile,
BINDINGS_DIR,
BLST_WRAP_CPP_PREBUILD,
BLST_WRAP_PY_PATCH,
BLST_WRAP_PY_FILE,
} from "./paths";

export async function buildBindings(binaryPath: string) {
Expand Down Expand Up @@ -37,9 +35,6 @@ export async function buildBindings(binaryPath: string) {
}
}

// Copy patched blst_wrap.py and bindings.gyp
fs.copyFileSync(BLST_WRAP_PY_PATCH, BLST_WRAP_PY_FILE);

// From https://github.com/sass/node-sass/blob/769f3a6f5a3949bd8e69c6b0a5d385a9c07924b4/scripts/build.js#L59
const nodeJsExec = process.execPath;
const nodeGypExec = require.resolve(
Expand Down
4 changes: 0 additions & 4 deletions src/scripts/paths.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ export const BLST_WRAP_CPP_PREBUILD = path.resolve(
"blst_wrap.cpp"
);

// Paths for custom python script to build blst_wrap.cpp
export const BLST_WRAP_PY_PATCH = path.join(ROOT_DIR, "blst_wrap.py");
export const BLST_WRAP_PY_FILE = path.join(BINDINGS_DIR, "blst_wrap.py");

/**
* Get binary name.
* name: {platform}-{arch}-{v8 version}.node
Expand Down

0 comments on commit c55d11e

Please sign in to comment.