Exemple #1
0
# Copyright (c) 2013 Sladeware LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#       http://www.apache.org/licenses/LICENSE-2.0
#
# 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.

# http://peak.telecommunity.com/DevCenter/EasyInstall
from bootstrap import use_setuptools; use_setuptools()
# http://packages.python.org/distribute/setuptools.html
from setuptools import setup, find_packages
from setuptools.command.install import install as _install
from setuptools.command.develop import develop as _develop
import sys

sys.path = ["src/"] + sys.path
# Dynamically get the current version
version = __import__("bb").__version__

def touch():
  """This function should be called each time bb is installed."""
  import bb.config
  # NOTE: actually this call is redundant, since once bb.config is loaded it
  # will call read_user_settings() with will use gen_default_user_config() if
Exemple #2
0
def main():
  parser = _build_argparser()
  args = parser.parse_args()
  use_setuptools()
  args.command.run()