# License for the specific language governing permissions and limitations under # the License. import os import sys import stat import traceback # To avoid accidentally creating files owned by root. sys.dont_write_bytecode = True # Python version check is done before imports below so # that python 2.6/2.5 users can see the error message. import pythonversion pythonversion.check("""\ NOTE: This script must be run in the Python interpreter that will be used to run Critic. """) if sys.flags.optimize > 0: print """ ERROR: Please run this script without -O or -OO options. """ sys.exit(1) import argparse import installation parser = argparse.ArgumentParser(description="Critic installation script") # Uses default values for everything that has a default value (and isn't # overridden by other command-line arguments) and signals an error for anything
# Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations under # the License. import os import sys # To avoid accidentally creating files owned by root. sys.dont_write_bytecode = True # Python version check is done before imports below so that python # 2.6/2.5 users can see the error message. import pythonversion pythonversion.check() import argparse import subprocess import multiprocessing import tempfile import pwd import installation parser = argparse.ArgumentParser(description="Critic extension support installation script", epilog="""\ Critic extension support is activated by simply running (as root): # python extend.py
# Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations under # the License. import os import sys # To avoid accidentally creating files owned by root. sys.dont_write_bytecode = True # Python version check is done before imports below so that python # 2.6/2.5 users can see the error message. import pythonversion pythonversion.check() import argparse import subprocess import multiprocessing import tempfile import pwd import installation parser = argparse.ArgumentParser( description="Critic extension support installation script", epilog="""\ Critic extension support is activated by simply running (as root): # python extend.py