Skip to content

Commit

Permalink
a few modifications to make it easier to make pypi packages
Browse files Browse the repository at this point in the history
  • Loading branch information
kylebystrom committed Nov 4, 2024
1 parent b1664c1 commit b8bcf97
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ include ciderpress/data/*.npy
prune pyscf/lib/build
include ciderpress/lib/*.so
include ciderpress/lib/*.so*
recursive-include ciderpress/lib/deps *.so
recursive-include ciderpress/lib/deps *.so.*

# macos dynamic libraries
include ciderpress/lib/*.dylib
Expand Down
6 changes: 5 additions & 1 deletion ciderpress/gpaw/nldf_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@
import ctypes

import numpy as np
from gpaw import cgpaw

try:
from gpaw import cgpaw
except ImportError:
import _gpaw as cgpaw
from gpaw.grid_descriptor import GridDescriptor
from gpaw.xc.libvdwxc import FFTDistribution, nulltimer

Expand Down
2 changes: 1 addition & 1 deletion ciderpress/lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ link_directories(${CMAKE_INSTALL_PREFIX}/lib ${CMAKE_INSTALL_PREFIX}/lib64)
# See also https://gitlab.kitware.com/cmake/community/wikis/doc/cmake/RPATH-handling
set(CMAKE_SKIP_BUILD_RPATH True)
set(CMAKE_BUILD_WITH_INSTALL_RPATH True)
set(CMAKE_INSTALL_RPATH "${PROJECT_SOURCE_DIR}:${PROJECT_SOURCE_DIR}/deps/lib:\$ORIGIN/deps/lib64")
set(CMAKE_INSTALL_RPATH "\$ORIGIN:\$ORIGIN/deps/lib:\$ORIGIN/deps/lib64")
message(RPATH=${CMAKE_INSTALL_RPATH})

include(ExternalProject)
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ dependencies = [
"h5py>=3.6.0",
"interpolation>=2.2.7",
"numba>=0.60",
"numpy>=2.0",
"numpy>=1.20",
"pyscf>=2.6",
"pytest",
"pyyaml",
"scikit-learn>=1.0.1",
"scipy>=1.14",
"scipy>=1.12",
"sympy",
]

Expand Down

0 comments on commit b8bcf97

Please sign in to comment.