Commit 11cb47ff authored by Denis Laxalde's avatar Denis Laxalde
Browse files

[pkg] Drop custom "install_data" command

Not sure what this is for, the comment mentions "egg" directory, but
this is quite likely an old hack that should be unnecessary when using a
recent setuptools.
parent 2060ee44ea9a
......@@ -27,7 +27,7 @@ import sys
from os.path import dirname, exists, isdir, join
from setuptools import setup
from distutils.command import install_data
here = dirname(__file__)
......@@ -70,16 +70,6 @@ def get_packages(directory, prefix):
return result
# re-enable copying data files in sys.prefix
# overwrite install_data to use sys.prefix instead of the egg directory
class MyInstallData(install_data.install_data):
"""A class that manages data files installation"""
def run(self):
_old_install_dir = self.install_dir
if self.install_dir.endswith('egg'):
self.install_dir = sys.prefix
self.install_dir = _old_install_dir
import setuptools.command.easy_install # only if easy_install available
# monkey patch: Crack SandboxViolation verification
......@@ -165,8 +155,5 @@ setup(
'install_data': MyInstallData,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment