From ebb6ee6f00a045c87187212b39f5a4c66384554c Mon Sep 17 00:00:00 2001 From: Matthew Messinger Date: Fri, 29 Sep 2023 12:54:08 -0400 Subject: [PATCH] Fix installing from sdist --- setup.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 909a3ff..638295f 100644 --- a/setup.py +++ b/setup.py @@ -1,9 +1,8 @@ from codecs import open -from inspect import getsource from os.path import abspath, dirname, join from setuptools import setup -here = abspath(dirname(getsource(lambda:0))) +here = abspath(dirname(__file__)) with open(join(here, 'README.rst'), encoding='utf-8') as f: long_description = f.read()