Description: Do not distribute Cython and C headers
 This is a temporary fix to prevent the installer spewing out
 the Cython and C header files which seem to cause lots of
 warnings and I don't really understand where they should go.
Author: James Cowgill <james410@cowgill.org.uk>
Last-Update: 2013-10-27
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/setup.py
+++ b/setup.py
@@ -115,46 +115,6 @@
 	[sources['network']],
 	['sfml-system', 'sfml-network'])
 
-
-major, minor, _, _ , _ = sys.version_info
-
-# Distribute Cython API (install cython headers)
-# Path: {CYTHON_DIR}/Includes/libcpp/sfml.pxd
-import cython
-cython_path = os.path.join(os.path.dirname(cython.__file__),'Cython')
-
-cython_headers = []
-
-pxd_files = glob(os.path.join('include', 'libcpp', '*'))
-pxd_files.remove(os.path.join('include', 'libcpp', 'http'))
-pxd_files.remove(os.path.join('include', 'libcpp', 'ftp'))
-cython_headers.append((os.path.join(cython_path, 'Includes', 'libcpp'), pxd_files))
-
-pxd_files = glob(os.path.join('include', 'libcpp', 'http', '*'))
-cython_headers.append((os.path.join(cython_path, 'Includes', 'libcpp', 'http'), pxd_files))
-
-pxd_files = glob(os.path.join('include', 'libcpp', 'ftp', '*'))
-cython_headers.append((os.path.join(cython_path, 'Includes', 'libcpp', 'ftp'), pxd_files))
-
-# Distribute C API (install C headers)
-
-if platform.system() == 'Windows':
-	# On Windows: C:\Python27\include\pysfml\*_api.h
-	c_api = [(sys.prefix +'\\include\\pysfml', glob('include/pysfml/*.h'))]
-else:
-	# On Unix: /usr/include/pysfml/*_api.h
-	c_api = [('/usr/include/pysfml', glob('include/pysfml/*.h'))]
-
-# Install the Cython API
-if platform.system() == 'Windows':
-	# On Windows: C:\Python27\Lib\pysfml\*.pxd
-	cython_api = [(sys.prefix + '\\Lib\\pysfml', glob('include/pysfml/*.pxd'))]
-else:
-	# On Unix: /usr/lib/pythonX.Y/pysfml/*.pxd
-	cython_api = [('/usr/lib/python{0}.{1}/pysfml'.format(major, minor), glob('include/pysfml/*.pxd'))]
-
-files = cython_headers + c_api + cython_api
-
 with open('README.rst', 'r') as f:
 	long_description = f.read()
 
@@ -165,7 +125,6 @@
 			ext_modules=ext_modules,
 			package_dir={'': 'src'},
 			packages=['sfml'],
-			data_files=files,
 			version='1.3.0',
 			description='Python bindings for SFML',
 			long_description=long_description,
