Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
edb74aec
Unverified
Commit
edb74aec
authored
Sep 18, 2024
by
Peter Eastman
Committed by
GitHub
Sep 18, 2024
Browse files
Changes for PyPI packaging (#4662)
parent
fed44c57
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
wrappers/python/CMakeLists.txt
wrappers/python/CMakeLists.txt
+12
-0
wrappers/python/setup.py
wrappers/python/setup.py
+1
-0
No files found.
wrappers/python/CMakeLists.txt
View file @
edb74aec
...
@@ -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
)
...
...
wrappers/python/setup.py
View file @
edb74aec
...
@@ -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)"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment