diff options
author | ROUVREAU Vincent <vincent.rouvreau@inria.fr> | 2020-06-01 16:05:32 +0200 |
---|---|---|
committer | ROUVREAU Vincent <vincent.rouvreau@inria.fr> | 2020-06-01 16:05:32 +0200 |
commit | 59d3fa0aa4ed6628f0dfbe3424c1d7a5c6f9a382 (patch) | |
tree | 6bb56b1e26a1a8bffd4a4778a79106c4c8b77f53 /src | |
parent | 7ff9d4ceeb659cac3af10a9f9d80c7267c47363a (diff) |
Simplify setup.py to read introduction.rst
Diffstat (limited to 'src')
-rw-r--r-- | src/python/setup.py.in | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/python/setup.py.in b/src/python/setup.py.in index f8eeafc4..dc163a37 100644 --- a/src/python/setup.py.in +++ b/src/python/setup.py.in @@ -13,7 +13,6 @@ from Cython.Build import cythonize from numpy import get_include as numpy_get_include import sys import pybind11 -from os import path __author__ = "Vincent Rouvreau" __copyright__ = "Copyright (C) 2016 Inria" @@ -64,9 +63,8 @@ for module in pybind11_modules: )) # read the contents of introduction.rst -this_directory = path.abspath(path.dirname(__file__)) -with open(path.join(this_directory, 'introduction.rst'), encoding='utf-8') as f: - long_description = f.read() +with open("introduction.rst", "r") as fh: + long_description = fh.read() setup( name = 'gudhi', |