@vercel/python 2.1.2-canary.0 → 2.1.2-canary.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +9 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -3715,6 +3715,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3715
3715
|
};
|
|
3716
3716
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
3717
3717
|
exports.installRequirementsFile = exports.installRequirement = void 0;
|
|
3718
|
+
const path_1 = __webpack_require__(622);
|
|
3718
3719
|
const execa_1 = __importDefault(__webpack_require__(580));
|
|
3719
3720
|
const build_utils_1 = __webpack_require__(445);
|
|
3720
3721
|
const makeDependencyCheckCode = (dependency) => `
|
|
@@ -3797,6 +3798,14 @@ async function installRequirement({ pythonPath, pipPath, dependency, version, wo
|
|
|
3797
3798
|
}
|
|
3798
3799
|
exports.installRequirement = installRequirement;
|
|
3799
3800
|
async function installRequirementsFile({ pythonPath, pipPath, filePath, workPath, meta, args = [], }) {
|
|
3801
|
+
const fileAtRoot = path_1.relative(workPath, filePath) === path_1.basename(filePath);
|
|
3802
|
+
// If the `requirements.txt` file is located in the Root Directory of the project and
|
|
3803
|
+
// the new File System API is used (`avoidTopLevelInstall`), the Install Command
|
|
3804
|
+
// will have already installed its dependencies, so we don't need to do it again.
|
|
3805
|
+
if (meta.avoidTopLevelInstall && fileAtRoot) {
|
|
3806
|
+
build_utils_1.debug(`Skipping requirements file installation, already installed by Install Command`);
|
|
3807
|
+
return;
|
|
3808
|
+
}
|
|
3800
3809
|
if (meta.isDev &&
|
|
3801
3810
|
(await areRequirementsInstalled(pythonPath, filePath, workPath))) {
|
|
3802
3811
|
build_utils_1.debug(`Skipping requirements file installation, already installed`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/python",
|
|
3
|
-
"version": "2.1.2-canary.
|
|
3
|
+
"version": "2.1.2-canary.1",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://vercel.com/docs/runtimes#official-runtimes/python",
|
|
@@ -24,5 +24,5 @@
|
|
|
24
24
|
"execa": "^1.0.0",
|
|
25
25
|
"typescript": "4.3.4"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "1202ff7b2b8a821c6404a86baa12996f3078ed36"
|
|
28
28
|
}
|