/usr/lib/python3/dist-packages/reproject/spherical_intersect/setup_package.py is in python3-reproject 0.3.1-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | import os
from distutils.core import Extension
REPROJECT_ROOT = os.path.relpath(os.path.dirname(__file__))
def get_extensions():
libraries = []
sources = []
sources.append(os.path.join(REPROJECT_ROOT, "_overlap.c"))
sources.append(os.path.join(REPROJECT_ROOT, "overlapArea.c"))
sources.append(os.path.join(REPROJECT_ROOT, "reproject_slice_c.c"))
include_dirs = ['numpy']
include_dirs.append(REPROJECT_ROOT)
extension = Extension(
name="reproject.spherical_intersect._overlap",
sources=sources,
include_dirs=include_dirs,
libraries=libraries,
language="c",
extra_compile_args=['-O2'])
return [extension]
def get_package_data():
header_files = ['overlapArea.h', 'reproject_slice_c.h', 'mNaN.h']
return {'reproject.spherical_intersect': header_files}
|