PATH: //opt/alt/alt-nodejs22/root/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp
FILE_BARU
CREATE
FOLDER_BARU
MKDIR
UPLOAD_FILE
GO
[ .. KEMBALI ]
📄 .release-please-manifest.json
↓
X
📄 LICENSE
↓
X
📁 __pycache__/
X
📁 data/
X
📁 docs/
X
📄 gyp
↓
X
📄 gyp.bat
↓
X
📄 gyp_main.py
↓
X
📁 pylib/
X
📄 pyproject.toml
↓
X
📄 release-please-config.json
↓
X
📄 test_gyp.py
↓
X
SAVING...
BERHASIL DIUBAH!
EDITING: gyp_main.py
#!/opt/alt/python38/bin/python3 # Copyright (c) 2009 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import os import subprocess import sys def IsCygwin(): # Function copied from pylib/gyp/common.py try: out = subprocess.Popen( "uname", stdout=subprocess.PIPE, stderr=subprocess.STDOUT ) stdout, _ = out.communicate() return "CYGWIN" in stdout.decode("utf-8") except Exception: return False def UnixifyPath(path): try: if not IsCygwin(): return path out = subprocess.Popen( ["cygpath", "-u", path], stdout=subprocess.PIPE, stderr=subprocess.STDOUT ) stdout, _ = out.communicate() return stdout.decode("utf-8") except Exception: return path # Make sure we're using the version of pylib in this repo, not one installed # elsewhere on the system. Also convert to Unix style path on Cygwin systems, # else the 'gyp' library will not be found path = UnixifyPath(sys.argv[0]) sys.path.insert(0, os.path.join(os.path.dirname(path), "pylib")) import gyp # noqa: E402 if __name__ == "__main__": sys.exit(gyp.script_main())
SIMPAN PERUBAHAN