diff --git a/CMakeLists.txt b/CMakeLists.txt index 315789e..2f80335 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -101,7 +101,7 @@ endif() find_program(PYTHON "python") -if(BUILD_PYTHON_DIST AND PYTHON) +if(BUILD_PYTHON AND PYTHON) set(PYTHONLIBRARYPATH "${CMAKE_INSTALL_PREFIX}/lib") set(SETUP_PY_IN "${CMAKE_CURRENT_SOURCE_DIR}/setup.py") diff --git a/setup.py b/setup.py index 5972cf1..d422ad6 100644 --- a/setup.py +++ b/setup.py @@ -16,15 +16,9 @@ # You should have received a copy of the GNU General Public License # along with PGURE-SVT. If not, see . -import os from setuptools import find_packages, setup -def read(fname): - """Utility function to read the README file.""" - return open(os.path.join(os.path.dirname(__file__), fname)).read() - - setup( name="pguresvt", version="${PGURE-SVT_VERSION_FULL}", @@ -32,7 +26,7 @@ def read(fname): author_email="tjof2@cam.ac.uk", url="https://github.com/tjof2/pgure-svt", description="Singular value thresholding for denoising video microscopy data", - long_description=read("${CMAKE_SOURCE_DIR}/README.md"), + long_description=open("README.md").read(), license="GPLv3", classifiers=[ "Development Status :: 4 - Beta",