diff --git a/recipe/0001-new-conda-python-Windows-layout.patch b/recipe/0001-new-conda-python-Windows-layout.patch deleted file mode 100644 index fa4997d..0000000 --- a/recipe/0001-new-conda-python-Windows-layout.patch +++ /dev/null @@ -1,47 +0,0 @@ -From 92fd45aaa3a15b1ccd21783e6ce8610cd0e94892 Mon Sep 17 00:00:00 2001 -From: "Lori A. Burns" -Date: Sun, 11 Oct 2026 19:15:20 -0400 -Subject: [PATCH 1/1] new conda python Windows layout - ---- - python/dftd3/parameters.py | 17 ++++++++++++++++- - 1 file changed, 16 insertions(+), 1 deletion(-) - -diff --git a/python/dftd3/parameters.py b/python/dftd3/parameters.py -index 479016d..3f252a9 100644 ---- a/python/dftd3/parameters.py -+++ b/python/dftd3/parameters.py -@@ -54,6 +54,7 @@ def get_data_file_name(base_name: str = "parameters.toml") -> str: - ) - if not exists(data_file): - # for Windows install layout -+ # * conda py<315 at Lib/site-packages/dftd3/parameters.py - data_file = join( - dirname(__file__), - "..", -@@ -65,7 +66,21 @@ def get_data_file_name(base_name: str = "parameters.toml") -> str: - base_name, - ) - if not exists(data_file): -- data_file = join(dirname(__file__), base_name) -+ # for Windows install layout -+ # * conda py>=315 at lib/python/site-packages/dftd3/parameters.py -+ data_file = join( -+ dirname(__file__), -+ "..", -+ "..", -+ "..", -+ "..", -+ "Library", -+ "share", -+ "s-dftd3", -+ base_name, -+ ) -+ if not exists(data_file): -+ data_file = join(dirname(__file__), base_name) - - return data_file - --- -2.40.1 - diff --git a/recipe/meta.yaml b/recipe/meta.yaml index f47cbc0..7b145e8 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -6,13 +6,12 @@ package: version: {{ version }} source: - url: https://github.com/dftd3/simple-dftd3/archive/refs/tags/v{{ version }}.tar.gz - sha256: 534919ebc44bb59de323513f41d1c1fba5f457008323d2e67087351a76c8fd9f - patches: - - 0001-new-conda-python-Windows-layout.patch + url: https://pypi.org/packages/source/{{ name[0] }}/dftd3/dftd3-{{ version }}.tar.gz + sha256: 189e5c20b27de8e674eb241de76d7a64902b80b550629d419297a000bfe3a19b + folder: python build: - number: 2 + number: 3 requirements: build: @@ -65,8 +64,8 @@ about: license: LGPL-3.0-or-later license_family: LGPL license_file: - - COPYING - - COPYING.LESSER + - python/COPYING + - python/COPYING.LESSER summary: Python API for the DFT-D3 project extra: