Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Make espresso pip-installable #4884

Open
wants to merge 3 commits into
base: python
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 1 addition & 9 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -265,16 +265,8 @@ set(ESPRESSO_INSTALL_LIBDIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}")

# python site-packages, can be overriden with CMake options
if(ESPRESSO_BUILD_WITH_PYTHON)
if(NOT ESPRESSO_INSTALL_PYTHON)
if(CMAKE_INSTALL_PREFIX STREQUAL "/")
set(ESPRESSO_INSTALL_PYTHON "${Python_SITEARCH}")
else()
set(ESPRESSO_INSTALL_PYTHON
"${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/python${Python_VERSION_MAJOR}.${Python_VERSION_MINOR}/site-packages"
)
endif()
endif()
# override: package C++, CUDA and Cython shared objects together
set(ESPRESSO_INSTALL_PYTHON "${Python_SITEARCH}")
set(ESPRESSO_INSTALL_LIBDIR "${ESPRESSO_INSTALL_PYTHON}/espressomd")
endif()

Expand Down
26 changes: 26 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[build-system]
requires = [
"scikit-build-core",
"cmake>=3.18",
"numpy>=1.23",
"cython>=0.29.21,<=3.0.7",
]
build-backend = "scikit_build_core.build"

[project]
name = "espressomd"
version = "4.3"
requires-python = ">=3.9"
dependencies = [
"numpy>=1.23"
]
description = "Extensible Simulation Package for Research on Soft Matter Systems"
readme = "Readme.md"
authors = [{name = "The ESPResSo project"}]
license = {file = "COPYING"}

[project.urls]
Homepage = "https://espressomd.org"
Repository = "https://github.com/espressomd/espresso"
Issues = "https://github.com/espressomd/espresso/issues"
Documentation = "https://espressomd.github.io/"
Loading