Skip to content

Commit

Permalink
Simplify setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tjof2 committed May 22, 2020
1 parent c904c9a commit af40d20
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
8 changes: 1 addition & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,17 @@
# You should have received a copy of the GNU General Public License
# along with PGURE-SVT. If not, see <http://www.gnu.org/licenses/>.

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}",
author="Tom Furnival",
author_email="[email protected]",
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",
Expand Down

0 comments on commit af40d20

Please sign in to comment.