From 46a47aeb8085ab143af92da80b06a8ee157dff83 Mon Sep 17 00:00:00 2001
From: Alexandru Ardelean <aa@ocedo.com>
Date: Thu, 8 Jan 2015 13:06:20 +0200
Subject: [PATCH 1/2] python-setuptools: fix Build/InstallDev rule

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
---
 lang/python-setuptools/Makefile | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lang/python-setuptools/Makefile b/lang/python-setuptools/Makefile
index 52a124d00..a25211926 100644
--- a/lang/python-setuptools/Makefile
+++ b/lang/python-setuptools/Makefile
@@ -40,10 +40,10 @@ define Build/Compile
 endef
 
 define Build/InstallDev
-	$(INSTALL_DIR) $(2)$(PYTHON_PKG_DIR)
+	$(INSTALL_DIR) $(PYTHON_LIB_DIR)
 	$(CP) \
-		$(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR) \
-		$(2)$(PYTHON_PKG_DIR)
+		$(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
+		$(PYTHON_LIB_DIR)
 endef
 
 define PyPackage/python-setuptools/install

From a236e91914cfd4e953fdc65309b935885a992013 Mon Sep 17 00:00:00 2001
From: Alexandru Ardelean <aa@ocedo.com>
Date: Thu, 8 Jan 2015 14:57:08 +0200
Subject: [PATCH 2/2] python-setuptools: remove windows support

Causes some build issues.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
---
 .../patches/0001-remove-windows-support.patch | 20 +++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 lang/python-setuptools/patches/0001-remove-windows-support.patch

diff --git a/lang/python-setuptools/patches/0001-remove-windows-support.patch b/lang/python-setuptools/patches/0001-remove-windows-support.patch
new file mode 100644
index 000000000..0a2d50baf
--- /dev/null
+++ b/lang/python-setuptools/patches/0001-remove-windows-support.patch
@@ -0,0 +1,20 @@
+diff --git a/setuptools/dist.py b/setuptools/dist.py
+index 6b9d350..1350e8a 100644
+--- a/setuptools/dist.py
++++ b/setuptools/dist.py
+@@ -15,7 +15,6 @@ from distutils.errors import (DistutilsOptionError, DistutilsPlatformError,
+ 
+ from setuptools.depends import Require
+ from setuptools.compat import basestring, PY2
+-from setuptools import windows_support
+ import pkg_resources
+ 
+ def _get_unpatched(cls):
+@@ -310,7 +309,6 @@ class Distribution(_Distribution):
+         egg_cache_dir = os.path.join(os.curdir, '.eggs')
+         if not os.path.exists(egg_cache_dir):
+             os.mkdir(egg_cache_dir)
+-            windows_support.hide_file(egg_cache_dir)
+             readme_txt_filename = os.path.join(egg_cache_dir, 'README.txt')
+             with open(readme_txt_filename, 'w') as f:
+                 f.write('This directory contains eggs that were downloaded '