Skip to content

Commit 907a009

Browse files
authored
chore(build): specify python binary for notary-client on UNIX explicitly (#1184)
1 parent 4fec57d commit 907a009

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/build/src/packaging/notary-service.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ describe('packaging artifact signing', () => {
5757
.find((arg: string) => arg.includes('notary-mongosh-token'));
5858

5959
expect(spawnSync).to.have.been.calledWith(
60-
'python',
60+
process.platform === 'win32' ? 'python' : '/usr/bin/python',
6161
[
6262
process.platform === 'win32' ?
6363
'C:\\cygwin\\usr\\local\\bin\\notary-client.py' :

packages/build/src/packaging/notary-service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const DEFAULT_OPTIONS: Partial<NotarizeOptions> = {
88
clientPath: process.platform === 'win32' ?
99
'C:\\cygwin\\usr\\local\\bin\\notary-client.py' :
1010
'/usr/local/bin/notary-client.py',
11-
pythonExecutable: 'python'
11+
pythonExecutable: process.platform === 'win32' ? 'python' : '/usr/bin/python'
1212
};
1313

1414
export interface NotarizeOptions {

0 commit comments

Comments
 (0)