MCPcopy Create free account
hub / github.com/vercel/vercel / isWheelCompatible

Function isWheelCompatible

packages/python-analysis/src/manifest/wheel-compat.ts:18–37  ·  view source on GitHub ↗
(
  wheelFilename: string,
  pythonMajor: number,
  pythonMinor: number,
  osName: string,
  archName: string,
  osMajor: number,
  osMinor: number
)

Source from the content-addressed store, hash-verified

16 * @returns true if the wheel is compatible with the platform
17 */
18export async function isWheelCompatible(
19 wheelFilename: string,
20 pythonMajor: number,
21 pythonMinor: number,
22 osName: string,
23 archName: string,
24 osMajor: number,
25 osMinor: number
26): Promise<boolean> {
27 const mod = await importWasmModule();
28 return mod.isWheelCompatible(
29 wheelFilename,
30 pythonMajor,
31 pythonMinor,
32 osName,
33 archName,
34 osMajor,
35 osMinor
36 );
37}
38
39/**
40 * Evaluate a PEP 508 environment marker against a target environment.

Calls 1

importWasmModuleFunction · 0.90

Tested by

no test coverage detected