1 |
bh |
6 |
|
2 |
|
|
import os, os.path |
3 |
|
|
from distutils.core import setup, Extension |
4 |
|
|
|
5 |
bh |
88 |
PROJ4_PREFIX = "/" |
6 |
bh |
6 |
PROJ4_INCLUDE = os.path.join(PROJ4_PREFIX, "usr/local/include") |
7 |
|
|
PROJ4_LIB = os.path.join(PROJ4_PREFIX, "usr/local/lib") |
8 |
|
|
|
9 |
|
|
extensions = [Extension("Projectionc", |
10 |
|
|
["Projection_wrap.c"], |
11 |
|
|
include_dirs = [PROJ4_INCLUDE], |
12 |
|
|
library_dirs = [PROJ4_LIB], |
13 |
|
|
libraries = ["proj"])] |
14 |
|
|
|
15 |
|
|
setup(name = "py-Projection", |
16 |
|
|
version = "0.1", |
17 |
|
|
description = "Python bindings for PROJ.4", |
18 |
|
|
author = "Douglas K. Rand", |
19 |
|
|
author_email = "[email protected]", |
20 |
|
|
py_modules = ["Projection"], |
21 |
|
|
ext_modules = extensions) |
22 |
|
|
|