GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — tools: backport tools/install.py for headers · nodejs/node@ce2a393

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • tools
    • install.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎tools/install.py‎

Copy file name to clipboardExpand all lines: tools/install.py
+10-2Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,9 @@ def files(action):
142142

143143
if 'true' == variables.get('node_install_npm'): npm_files(action)
144144

145+
headers(action)
146+
147+
def headers(action):
145148
action([
146149
'common.gypi',
147150
'config.gypi',
@@ -194,8 +197,13 @@ def run(args):
194197
install_path = dst_dir + node_prefix + '/'
195198

196199
cmd = args[1] if len(args) > 1 else 'install'
197-
if cmd == 'install': return files(install)
198-
if cmd == 'uninstall': return files(uninstall)
200+
if os.environ.get('HEADERS_ONLY'):
201+
if cmd == 'install': return headers(install)
202+
if cmd == 'uninstall': return headers(uninstall)
203+
else:
204+
if cmd == 'install': return files(install)
205+
if cmd == 'uninstall': return files(uninstall)
206+
199207
raise RuntimeError('Bad command: %s\n' % cmd)
200208

201209
if __name__ == '__main__':

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.