Commit c1386f98 authored by Tres Seaver's avatar Tres Seaver

Remove fallback to no-longer-bundled copy of 'persistent.h'.

parent f13dd7b2
...@@ -18,7 +18,6 @@ import os ...@@ -18,7 +18,6 @@ import os
import platform import platform
import sys import sys
from setuptools import Extension from setuptools import Extension
from setuptools import find_packages from setuptools import find_packages
from setuptools import setup from setuptools import setup
...@@ -46,12 +45,8 @@ class ModuleHeaderDir(object): ...@@ -46,12 +45,8 @@ class ModuleHeaderDir(object):
def __str__(self): def __str__(self):
from pkg_resources import require from pkg_resources import require
from pkg_resources import resource_filename from pkg_resources import resource_filename
from pkg_resources import DistributionNotFound require(self._require_spec)
try: path = resource_filename(self._require_spec, self._where)
require(self._require_spec)
path = resource_filename(self._require_spec, self._where)
except DistributionNotFound:
path = os.path.join(here, 'include')
return os.path.abspath(path) return os.path.abspath(path)
include = [ModuleHeaderDir('persistent')] include = [ModuleHeaderDir('persistent')]
......
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