Unverified Commit edb74aec authored by Peter Eastman's avatar Peter Eastman Committed by GitHub
Browse files

Changes for PyPI packaging (#4662)

parent fed44c57
...@@ -281,6 +281,18 @@ add_custom_target(PythonSdist ...@@ -281,6 +281,18 @@ add_custom_target(PythonSdist
COMMENT "Packaging source distribution package (sdist)..." COMMENT "Packaging source distribution package (sdist)..."
) )
# Wheel
set(PYTHON_SETUP_COMMAND bdist_wheel)
configure_file(pysetup.cmake.in
"${CMAKE_CURRENT_BINARY_DIR}/pysetupbdist_wheel.cmake" @ONLY)
add_custom_target(PythonBdistWheel
COMMAND ${CMAKE_COMMAND}
-P "${CMAKE_CURRENT_BINARY_DIR}/pysetupbdist_wheel.cmake"
DEPENDS ${STAGING_OUTPUT_FILES} "${CMAKE_CURRENT_BINARY_DIR}/pysetupbdist_wheel.cmake"
WORKING_DIRECTORY ${OPENMM_PYTHON_STAGING_DIR}
COMMENT "Packaging wheel (bdist_wheel)..."
)
set(OPENMM_PYTHON_USER_INSTALL OFF CACHE BOOL set(OPENMM_PYTHON_USER_INSTALL OFF CACHE BOOL
"Whether to install OpenMM Python binary module into the user site-packages directory") "Whether to install OpenMM Python binary module into the user site-packages directory")
mark_as_advanced(OPENMM_PYTHON_USER_INSTALL) mark_as_advanced(OPENMM_PYTHON_USER_INSTALL)
......
...@@ -154,6 +154,7 @@ def buildKeywordDictionary(major_version_num=MAJOR_VERSION_NUM, ...@@ -154,6 +154,7 @@ def buildKeywordDictionary(major_version_num=MAJOR_VERSION_NUM,
setupKeywords["package_data"] = {"openmm" : [], setupKeywords["package_data"] = {"openmm" : [],
"openmm.app" : ['data/*.xml', 'data/*.pdb', 'data/amber14/*.xml', 'data/charmm36/*.xml', 'data/implicit/*.xml'], "openmm.app" : ['data/*.xml', 'data/*.pdb', 'data/amber14/*.xml', 'data/charmm36/*.xml', 'data/implicit/*.xml'],
"openmm.app.internal" : []} "openmm.app.internal" : []}
setupKeywords["install_requires"] = ["numpy"]
setupKeywords["platforms"] = ["Linux", "Mac OS X", "Windows"] setupKeywords["platforms"] = ["Linux", "Mac OS X", "Windows"]
setupKeywords["description"] = \ setupKeywords["description"] = \
"Python wrapper for OpenMM (a C++ MD package)" "Python wrapper for OpenMM (a C++ MD package)"
......
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