Exemplo n.º 1
0
# coding: utf-8

__author__ = "Caleb Burns"
__version__ = "0.5.0"
__status__ = "Development"

import collections
import os
import os.path
import platform
import warnings
from distutils.core import setup, Extension
from distutils.command.install import INSTALL_SCHEMES

# Change data path to packages path.
for scheme in INSTALL_SCHEMES.itervalues():
    scheme['data'] = scheme['purelib']

system = platform.system()
arch = platform.architecture()[0]

# TODO: These need to be configurable.
php_include_path = os.environ['PHP_INCLUDE_PATH']
php_library_path = os.environ['PHP_LIBRARY_PATH']

defines = []
sources = ['pyphp/cpyphp_module.c']
libraries = []
include_dirs = [
    'inc', 'inc/std', php_include_path,
    os.path.join(php_include_path, 'main'),
Exemplo n.º 2
0
# coding: utf-8
import sys
import warnings
from distutils.core import setup
from distutils.command.install import INSTALL_SCHEMES

# Change data path to packages path.
for scheme in INSTALL_SCHEMES.itervalues():
	scheme['data'] = scheme['purelib']

if sys.version_info[:2] != (2, 7):
	warnings.warn("Only Python 2.7 has been tested, not %s.%s" % sys.version_info[:2])

import pdt

# Write readme file.
with open('README.rst', 'wb') as fh:
	fh.write(pdt.__doc__)

# Read changes file.
with open('CHANGES.rst', 'rb') as fh:
	changes = fh.read()
	
setup(
	name="pdt",
	version=pdt.__version__,
	author="Caleb P. Burns",
	author_email="*****@*****.**",
	url="https://github.com/cpburnz/python-decorated-templates.git",
	description="Python templating strategy involving decorators and inline expressions.",
	long_description=pdt.__doc__ + "\n\n" + changes,