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 — codeql/python/extractor/setup.py at codeql-cli/latest · github/codeql

Expand file tree

/

setup.py

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
33 lines (24 loc) · 917 Bytes
/

setup.py

Copy path

File metadata and controls

33 lines (24 loc) · 917 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/env python
#This file needs to be able to handle all versions of Python we are likely to encounter
#Which is probably 3.0 and upwards
'''Run buildtools/install.py'''
import sys
import os
import subprocess
from python_tracer import getzipfilename
if 'SEMMLE_DIST' in os.environ:
if 'CODEQL_EXTRACTOR_PYTHON_ROOT' not in os.environ:
os.environ['CODEQL_EXTRACTOR_PYTHON_ROOT'] = os.environ['SEMMLE_DIST']
else:
os.environ["SEMMLE_DIST"] = os.environ["CODEQL_EXTRACTOR_PYTHON_ROOT"]
tools = os.path.join(os.environ['SEMMLE_DIST'], "tools")
zippath = os.path.join(tools, getzipfilename())
sys.path = [ zippath ] + sys.path
# these are imported from the zip
from buildtools.discover import discover
import buildtools.install
def main():
version, root, requirement_files = discover()
buildtools.install.main(version, root, requirement_files)
if __name__ == "__main__":
main()
You are visitor 01402503 — 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.