1#!/usr/bin/env python 2# -*- coding: ascii -*- 3# 4# Copyright 2006 - 2013 5# Andr\xe9 Malo or his licensors, as applicable 6# 7# Licensed under the Apache License, Version 2.0 (the "License"); 8# you may not use this file except in compliance with the License. 9# You may obtain a copy of the License at 10# 11# http://www.apache.org/licenses/LICENSE-2.0 12# 13# Unless required by applicable law or agreed to in writing, software 14# distributed under the License is distributed on an "AS IS" BASIS, 15# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16# See the License for the specific language governing permissions and 17# limitations under the License. 18 19import sys as _sys 20from _setup import run 21 22 23def setup(args=None, _manifest=0): 24 """ Main setup function """ 25 from _setup.ext import Extension 26 27 if 'java' in _sys.platform.lower(): 28 # no c extension for jython 29 ext = None 30 else: 31 ext=[Extension('_rcssmin', sources=['rcssmin.c'])] 32 33 return run(script_args=args, ext=ext, manifest_only=_manifest) 34 35 36def manifest(): 37 """ Create List of packaged files """ 38 return setup((), _manifest=1) 39 40 41if __name__ == '__main__': 42 setup() 43