deepmd-gnn 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. deepmd_gnn-0.1.0/.clang-format +4 -0
  2. deepmd_gnn-0.1.0/.github/dependabot.yml +6 -0
  3. deepmd_gnn-0.1.0/.github/workflows/release.yaml +94 -0
  4. deepmd_gnn-0.1.0/.github/workflows/test.yaml +37 -0
  5. deepmd_gnn-0.1.0/.gitignore +165 -0
  6. deepmd_gnn-0.1.0/.pre-commit-config.yaml +47 -0
  7. deepmd_gnn-0.1.0/CMakeLists.txt +68 -0
  8. deepmd_gnn-0.1.0/LICENSE +165 -0
  9. deepmd_gnn-0.1.0/PKG-INFO +374 -0
  10. deepmd_gnn-0.1.0/README.md +182 -0
  11. deepmd_gnn-0.1.0/build_backend/__init__.py +1 -0
  12. deepmd_gnn-0.1.0/build_backend/dp_backend.py +48 -0
  13. deepmd_gnn-0.1.0/deepmd_gnn/__init__.py +11 -0
  14. deepmd_gnn-0.1.0/deepmd_gnn/__main__.py +5 -0
  15. deepmd_gnn-0.1.0/deepmd_gnn/_version.py +16 -0
  16. deepmd_gnn-0.1.0/deepmd_gnn/argcheck.py +282 -0
  17. deepmd_gnn-0.1.0/deepmd_gnn/env.py +5 -0
  18. deepmd_gnn-0.1.0/deepmd_gnn/mace.py +869 -0
  19. deepmd_gnn-0.1.0/deepmd_gnn/nequip.py +698 -0
  20. deepmd_gnn-0.1.0/deepmd_gnn/op.py +41 -0
  21. deepmd_gnn-0.1.0/deepmd_gnn/py.typed +0 -0
  22. deepmd_gnn-0.1.0/examples/.gitignore +8 -0
  23. deepmd_gnn-0.1.0/examples/dprc/data/nopbc +0 -0
  24. deepmd_gnn-0.1.0/examples/dprc/data/set.000/box.npy +0 -0
  25. deepmd_gnn-0.1.0/examples/dprc/data/set.000/coord.npy +0 -0
  26. deepmd_gnn-0.1.0/examples/dprc/data/set.000/energy.npy +0 -0
  27. deepmd_gnn-0.1.0/examples/dprc/data/set.000/force.npy +0 -0
  28. deepmd_gnn-0.1.0/examples/dprc/data/type.raw +275 -0
  29. deepmd_gnn-0.1.0/examples/dprc/data/type_map.raw +6 -0
  30. deepmd_gnn-0.1.0/examples/dprc/mace/input.json +49 -0
  31. deepmd_gnn-0.1.0/examples/dprc/nequip/input.json +55 -0
  32. deepmd_gnn-0.1.0/examples/water/data/data_0/set.000/box.npy +0 -0
  33. deepmd_gnn-0.1.0/examples/water/data/data_0/set.000/coord.npy +0 -0
  34. deepmd_gnn-0.1.0/examples/water/data/data_0/set.000/energy.npy +0 -0
  35. deepmd_gnn-0.1.0/examples/water/data/data_0/set.000/force.npy +0 -0
  36. deepmd_gnn-0.1.0/examples/water/data/data_0/type.raw +192 -0
  37. deepmd_gnn-0.1.0/examples/water/data/data_0/type_map.raw +2 -0
  38. deepmd_gnn-0.1.0/examples/water/data/data_1/set.000/box.npy +0 -0
  39. deepmd_gnn-0.1.0/examples/water/data/data_1/set.000/coord.npy +0 -0
  40. deepmd_gnn-0.1.0/examples/water/data/data_1/set.000/energy.npy +0 -0
  41. deepmd_gnn-0.1.0/examples/water/data/data_1/set.000/force.npy +0 -0
  42. deepmd_gnn-0.1.0/examples/water/data/data_1/set.001/box.npy +0 -0
  43. deepmd_gnn-0.1.0/examples/water/data/data_1/set.001/coord.npy +0 -0
  44. deepmd_gnn-0.1.0/examples/water/data/data_1/set.001/energy.npy +0 -0
  45. deepmd_gnn-0.1.0/examples/water/data/data_1/set.001/force.npy +0 -0
  46. deepmd_gnn-0.1.0/examples/water/data/data_1/type.raw +192 -0
  47. deepmd_gnn-0.1.0/examples/water/data/data_1/type_map.raw +2 -0
  48. deepmd_gnn-0.1.0/examples/water/data/data_2/set.000/box.npy +0 -0
  49. deepmd_gnn-0.1.0/examples/water/data/data_2/set.000/coord.npy +0 -0
  50. deepmd_gnn-0.1.0/examples/water/data/data_2/set.000/energy.npy +0 -0
  51. deepmd_gnn-0.1.0/examples/water/data/data_2/set.000/force.npy +0 -0
  52. deepmd_gnn-0.1.0/examples/water/data/data_2/type.raw +192 -0
  53. deepmd_gnn-0.1.0/examples/water/data/data_2/type_map.raw +2 -0
  54. deepmd_gnn-0.1.0/examples/water/data/data_3/set.000/box.npy +0 -0
  55. deepmd_gnn-0.1.0/examples/water/data/data_3/set.000/coord.npy +0 -0
  56. deepmd_gnn-0.1.0/examples/water/data/data_3/set.000/energy.npy +0 -0
  57. deepmd_gnn-0.1.0/examples/water/data/data_3/set.000/force.npy +0 -0
  58. deepmd_gnn-0.1.0/examples/water/data/data_3/type.raw +192 -0
  59. deepmd_gnn-0.1.0/examples/water/data/data_3/type_map.raw +2 -0
  60. deepmd_gnn-0.1.0/examples/water/mace/input.json +61 -0
  61. deepmd_gnn-0.1.0/examples/water/nequip/input.json +61 -0
  62. deepmd_gnn-0.1.0/noxfile.py +34 -0
  63. deepmd_gnn-0.1.0/op/CMakeLists.txt +22 -0
  64. deepmd_gnn-0.1.0/op/edge_index.cc +87 -0
  65. deepmd_gnn-0.1.0/pyproject.toml +124 -0
  66. deepmd_gnn-0.1.0/renovate.json +6 -0
  67. deepmd_gnn-0.1.0/tests/__init__.py +1 -0
  68. deepmd_gnn-0.1.0/tests/data/set.000/box.npy +0 -0
  69. deepmd_gnn-0.1.0/tests/data/set.000/coord.npy +0 -0
  70. deepmd_gnn-0.1.0/tests/data/set.000/energy.npy +0 -0
  71. deepmd_gnn-0.1.0/tests/data/set.000/force.npy +0 -0
  72. deepmd_gnn-0.1.0/tests/data/type.raw +192 -0
  73. deepmd_gnn-0.1.0/tests/data/type_map.raw +2 -0
  74. deepmd_gnn-0.1.0/tests/mace.json +59 -0
  75. deepmd_gnn-0.1.0/tests/nequip.json +59 -0
  76. deepmd_gnn-0.1.0/tests/test_examples.py +30 -0
  77. deepmd_gnn-0.1.0/tests/test_model.py +1127 -0
  78. deepmd_gnn-0.1.0/tests/test_op.py +93 -0
  79. deepmd_gnn-0.1.0/tests/test_training.py +56 -0
  80. deepmd_gnn-0.1.0/tests/test_version.py +12 -0
@@ -0,0 +1,4 @@
1
+ ---
2
+ BasedOnStyle: Google
3
+ BinPackParameters: false
4
+ InsertBraces: true
@@ -0,0 +1,6 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: "github-actions"
4
+ directory: "/"
5
+ schedule:
6
+ interval: "weekly"
@@ -0,0 +1,94 @@
1
+ on:
2
+ push:
3
+ branches:
4
+ - master
5
+ tags:
6
+ - "v*"
7
+ pull_request:
8
+ name: Build and release to pypi
9
+ permissions:
10
+ contents: read
11
+ jobs:
12
+ release-build:
13
+ name: Build and upload distributions
14
+ runs-on: ubuntu-latest
15
+ steps:
16
+ - uses: actions/checkout@v4
17
+ - name: Set up uv
18
+ uses: astral-sh/setup-uv@v3
19
+ with:
20
+ enable-cache: true
21
+ cache-dependency-glob: |
22
+ **/requirements*.txt
23
+ **/pyproject.toml
24
+ - name: Build dist
25
+ run: uv tool run --with build[uv] --from build python -m build --installer uv --sdist
26
+ - name: Upload release distributions
27
+ uses: actions/upload-artifact@v4
28
+ with:
29
+ name: release-dists
30
+ path: dist/
31
+ release-wheel:
32
+ name: Build wheels for cp${{ matrix.python }}-${{ matrix.platform_id }}
33
+ runs-on: ${{ matrix.os }}
34
+ strategy:
35
+ fail-fast: false
36
+ matrix:
37
+ include:
38
+ # linux-64
39
+ - os: ubuntu-latest
40
+ python: 312
41
+ platform_id: manylinux_x86_64
42
+ # macos-x86-64
43
+ - os: macos-13
44
+ python: 312
45
+ platform_id: macosx_x86_64
46
+ # macos-arm64
47
+ - os: macos-14
48
+ python: 312
49
+ platform_id: macosx_arm64
50
+ # win-64
51
+ - os: windows-2019
52
+ python: 312
53
+ platform_id: win_amd64
54
+ steps:
55
+ - uses: actions/checkout@v4
56
+ - name: Set up uv
57
+ uses: astral-sh/setup-uv@v3
58
+ with:
59
+ enable-cache: true
60
+ cache-dependency-glob: |
61
+ **/requirements*.txt
62
+ **/pyproject.toml
63
+ if: runner.os != 'Linux'
64
+ - name: Build wheels
65
+ uses: pypa/cibuildwheel@v2.21
66
+ env:
67
+ CIBW_ARCHS: all
68
+ CIBW_BUILD: cp${{ matrix.python }}-${{ matrix.platform_id }}
69
+ CIBW_BUILD_FRONTEND: "build[uv]"
70
+ - uses: actions/upload-artifact@v4
71
+ with:
72
+ name: release-cibw-cp${{ matrix.python }}-${{ matrix.platform_id }}-${{ strategy.job-index }}
73
+ path: ./wheelhouse/*.whl
74
+ pypi-publish:
75
+ name: Release to pypi
76
+ runs-on: ubuntu-latest
77
+ environment:
78
+ name: pypi_publish
79
+ url: https://pypi.org/p/python-template
80
+ if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
81
+ needs:
82
+ - release-build
83
+ - release-wheel
84
+ permissions:
85
+ id-token: write
86
+ steps:
87
+ - name: Retrieve release distributions
88
+ uses: actions/download-artifact@v4
89
+ with:
90
+ merge-multiple: true
91
+ pattern: release-*
92
+ path: dist/
93
+ - name: Publish release distributions to PyPI
94
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,37 @@
1
+ name: Test Python package
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - master
7
+ pull_request:
8
+
9
+ env:
10
+ UV_SYSTEM_PYTHON: 1
11
+ jobs:
12
+ build:
13
+ runs-on: ubuntu-latest
14
+ permissions:
15
+ id-token: write
16
+ contents: read
17
+ steps:
18
+ - uses: actions/checkout@v4
19
+ - name: Set up uv
20
+ uses: astral-sh/setup-uv@v3
21
+ with:
22
+ enable-cache: true
23
+ cache-dependency-glob: |
24
+ **/requirements*.txt
25
+ **/pyproject.toml
26
+ - name: Set up Python
27
+ uses: actions/setup-python@v5
28
+ with:
29
+ python-version: 3.12
30
+ - name: Install dependencies
31
+ run: uv pip install nox[uv]
32
+ - name: Test with pytest
33
+ run: nox -db uv
34
+ - name: Upload coverage reports to Codecov
35
+ uses: codecov/codecov-action@v5
36
+ with:
37
+ use_oidc: ${{ !(github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork) }}
@@ -0,0 +1,165 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ share/python-wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+ MANIFEST
28
+
29
+ # PyInstaller
30
+ # Usually these files are written by a python script from a template
31
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
32
+ *.manifest
33
+ *.spec
34
+
35
+ # Installer logs
36
+ pip-log.txt
37
+ pip-delete-this-directory.txt
38
+
39
+ # Unit test / coverage reports
40
+ htmlcov/
41
+ .tox/
42
+ .nox/
43
+ .coverage
44
+ .coverage.*
45
+ .cache
46
+ nosetests.xml
47
+ coverage.xml
48
+ *.cover
49
+ *.py,cover
50
+ .hypothesis/
51
+ .pytest_cache/
52
+ cover/
53
+
54
+ # Translations
55
+ *.mo
56
+ *.pot
57
+
58
+ # Django stuff:
59
+ *.log
60
+ local_settings.py
61
+ db.sqlite3
62
+ db.sqlite3-journal
63
+
64
+ # Flask stuff:
65
+ instance/
66
+ .webassets-cache
67
+
68
+ # Scrapy stuff:
69
+ .scrapy
70
+
71
+ # Sphinx documentation
72
+ docs/_build/
73
+
74
+ # PyBuilder
75
+ .pybuilder/
76
+ target/
77
+
78
+ # Jupyter Notebook
79
+ .ipynb_checkpoints
80
+
81
+ # IPython
82
+ profile_default/
83
+ ipython_config.py
84
+
85
+ # pyenv
86
+ # For a library or package, you might want to ignore these files since the code is
87
+ # intended to run in multiple environments; otherwise, check them in:
88
+ # .python-version
89
+
90
+ # pipenv
91
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
93
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
94
+ # install all needed dependencies.
95
+ #Pipfile.lock
96
+
97
+ # poetry
98
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
99
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
100
+ # commonly ignored for libraries.
101
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
102
+ #poetry.lock
103
+
104
+ # pdm
105
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
106
+ #pdm.lock
107
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
108
+ # in version control.
109
+ # https://pdm.fming.dev/latest/usage/project/#working-with-version-control
110
+ .pdm.toml
111
+ .pdm-python
112
+ .pdm-build/
113
+
114
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
115
+ __pypackages__/
116
+
117
+ # Celery stuff
118
+ celerybeat-schedule
119
+ celerybeat.pid
120
+
121
+ # SageMath parsed files
122
+ *.sage.py
123
+
124
+ # Environments
125
+ .env
126
+ .venv
127
+ env/
128
+ venv/
129
+ ENV/
130
+ env.bak/
131
+ venv.bak/
132
+
133
+ # Spyder project settings
134
+ .spyderproject
135
+ .spyproject
136
+
137
+ # Rope project settings
138
+ .ropeproject
139
+
140
+ # mkdocs documentation
141
+ /site
142
+
143
+ # mypy
144
+ .mypy_cache/
145
+ .dmypy.json
146
+ dmypy.json
147
+
148
+ # Pyre type checker
149
+ .pyre/
150
+
151
+ # pytype static type analyzer
152
+ .pytype/
153
+
154
+ # Cython debug symbols
155
+ cython_debug/
156
+
157
+ # PyCharm
158
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
159
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
160
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
161
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
162
+ #.idea/
163
+ .ruff_cache/
164
+ node_modules/
165
+ deepmd_gnn/_version.py
@@ -0,0 +1,47 @@
1
+ # See https://pre-commit.com for more information
2
+ # See https://pre-commit.com/hooks.html for more hooks
3
+ repos:
4
+ - repo: https://github.com/pre-commit/pre-commit-hooks
5
+ rev: v5.0.0
6
+ hooks:
7
+ - id: trailing-whitespace
8
+ - id: end-of-file-fixer
9
+ - id: check-yaml
10
+ - id: check-json
11
+ - id: check-added-large-files
12
+ - id: check-merge-conflict
13
+ - id: check-symlinks
14
+ - id: check-toml
15
+ - id: mixed-line-ending
16
+ # Python
17
+ - repo: https://github.com/astral-sh/ruff-pre-commit
18
+ rev: v0.7.4
19
+ hooks:
20
+ - id: ruff
21
+ args: ["--fix"]
22
+ - id: ruff-format
23
+ - repo: https://github.com/pre-commit/mirrors-mypy
24
+ rev: "v1.13.0"
25
+ hooks:
26
+ - id: mypy
27
+ additional_dependencies: []
28
+ - repo: https://github.com/pre-commit/mirrors-prettier
29
+ rev: v4.0.0-alpha.8
30
+ hooks:
31
+ - id: prettier
32
+ types_or: [javascript, css, html, markdown, yaml]
33
+ - repo: https://github.com/abravalheri/validate-pyproject
34
+ rev: v0.23
35
+ hooks:
36
+ - id: validate-pyproject
37
+ additional_dependencies: ["validate-pyproject-schema-store[all]"]
38
+ # C++
39
+ - repo: https://github.com/pre-commit/mirrors-clang-format
40
+ rev: v19.1.3
41
+ hooks:
42
+ - id: clang-format
43
+ # CMake
44
+ - repo: https://github.com/cheshirekow/cmake-format-precommit
45
+ rev: v0.6.13
46
+ hooks:
47
+ - id: cmake-format
@@ -0,0 +1,68 @@
1
+ cmake_minimum_required(VERSION 3.15)
2
+ project(deepmd-gnn CXX)
3
+
4
+ set(CMAKE_CXX_STANDARD 14)
5
+ macro(set_if_higher VARIABLE VALUE)
6
+ # ${VARIABLE} is a variable name, not a string
7
+ if(${VARIABLE} LESS "${VALUE}")
8
+ set(${VARIABLE} ${VALUE})
9
+ endif()
10
+ endmacro()
11
+
12
+ # build cpp or python interfaces
13
+ option(BUILD_CPP_IF "Build C++ interfaces" ON)
14
+ option(BUILD_PY_IF "Build Python interfaces" OFF)
15
+ option(USE_PT_PYTHON_LIBS "Use PyTorch Python libraries" OFF)
16
+
17
+ if((NOT BUILD_PY_IF) AND (NOT BUILD_CPP_IF))
18
+ # nothing to do
19
+ message(FATAL_ERROR "Nothing to build.")
20
+ endif()
21
+
22
+ if(BUILD_CPP_IF
23
+ AND USE_PT_PYTHON_LIBS
24
+ AND NOT CMAKE_CROSSCOMPILING
25
+ AND NOT SKBUILD
26
+ OR "$ENV{CIBUILDWHEEL}" STREQUAL "1")
27
+ find_package(
28
+ Python
29
+ COMPONENTS Interpreter
30
+ REQUIRED)
31
+ execute_process(
32
+ COMMAND ${Python_EXECUTABLE} -c
33
+ "import torch;print(torch.utils.cmake_prefix_path)"
34
+ WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
35
+ OUTPUT_VARIABLE PYTORCH_CMAKE_PREFIX_PATH
36
+ RESULT_VARIABLE PYTORCH_CMAKE_PREFIX_PATH_RESULT_VAR
37
+ ERROR_VARIABLE PYTORCH_CMAKE_PREFIX_PATH_ERROR_VAR
38
+ OUTPUT_STRIP_TRAILING_WHITESPACE)
39
+ if(NOT ${PYTORCH_CMAKE_PREFIX_PATH_RESULT_VAR} EQUAL 0)
40
+ message(
41
+ FATAL_ERROR
42
+ "Cannot determine PyTorch CMake prefix path, error code: $PYTORCH_CMAKE_PREFIX_PATH_RESULT_VAR}, error message: ${PYTORCH_CMAKE_PREFIX_PATH_ERROR_VAR}"
43
+ )
44
+ endif()
45
+ list(APPEND CMAKE_PREFIX_PATH ${PYTORCH_CMAKE_PREFIX_PATH})
46
+ endif()
47
+ find_package(Torch REQUIRED)
48
+ if(NOT Torch_VERSION VERSION_LESS "2.1.0")
49
+ set_if_higher(CMAKE_CXX_STANDARD 17)
50
+ elseif(NOT Torch_VERSION VERSION_LESS "1.5.0")
51
+ set_if_higher(CMAKE_CXX_STANDARD 14)
52
+ endif()
53
+ string(REGEX MATCH "_GLIBCXX_USE_CXX11_ABI=([0-9]+)" CXXABI_PT_MATCH
54
+ "${TORCH_CXX_FLAGS}")
55
+ if(CXXABI_PT_MATCH)
56
+ set(OP_CXX_ABI_PT ${CMAKE_MATCH_1})
57
+ message(STATUS "PyTorch CXX11 ABI: ${CMAKE_MATCH_1}")
58
+ else()
59
+ # Maybe in macos/windows
60
+ set(OP_CXX_ABI_PT 0)
61
+ endif()
62
+
63
+ # define build type
64
+ if((NOT DEFINED CMAKE_BUILD_TYPE) OR CMAKE_BUILD_TYPE STREQUAL "")
65
+ set(CMAKE_BUILD_TYPE release)
66
+ endif()
67
+
68
+ add_subdirectory(op)
@@ -0,0 +1,165 @@
1
+ GNU LESSER GENERAL PUBLIC LICENSE
2
+ Version 3, 29 June 2007
3
+
4
+ Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
5
+ Everyone is permitted to copy and distribute verbatim copies
6
+ of this license document, but changing it is not allowed.
7
+
8
+
9
+ This version of the GNU Lesser General Public License incorporates
10
+ the terms and conditions of version 3 of the GNU General Public
11
+ License, supplemented by the additional permissions listed below.
12
+
13
+ 0. Additional Definitions.
14
+
15
+ As used herein, "this License" refers to version 3 of the GNU Lesser
16
+ General Public License, and the "GNU GPL" refers to version 3 of the GNU
17
+ General Public License.
18
+
19
+ "The Library" refers to a covered work governed by this License,
20
+ other than an Application or a Combined Work as defined below.
21
+
22
+ An "Application" is any work that makes use of an interface provided
23
+ by the Library, but which is not otherwise based on the Library.
24
+ Defining a subclass of a class defined by the Library is deemed a mode
25
+ of using an interface provided by the Library.
26
+
27
+ A "Combined Work" is a work produced by combining or linking an
28
+ Application with the Library. The particular version of the Library
29
+ with which the Combined Work was made is also called the "Linked
30
+ Version".
31
+
32
+ The "Minimal Corresponding Source" for a Combined Work means the
33
+ Corresponding Source for the Combined Work, excluding any source code
34
+ for portions of the Combined Work that, considered in isolation, are
35
+ based on the Application, and not on the Linked Version.
36
+
37
+ The "Corresponding Application Code" for a Combined Work means the
38
+ object code and/or source code for the Application, including any data
39
+ and utility programs needed for reproducing the Combined Work from the
40
+ Application, but excluding the System Libraries of the Combined Work.
41
+
42
+ 1. Exception to Section 3 of the GNU GPL.
43
+
44
+ You may convey a covered work under sections 3 and 4 of this License
45
+ without being bound by section 3 of the GNU GPL.
46
+
47
+ 2. Conveying Modified Versions.
48
+
49
+ If you modify a copy of the Library, and, in your modifications, a
50
+ facility refers to a function or data to be supplied by an Application
51
+ that uses the facility (other than as an argument passed when the
52
+ facility is invoked), then you may convey a copy of the modified
53
+ version:
54
+
55
+ a) under this License, provided that you make a good faith effort to
56
+ ensure that, in the event an Application does not supply the
57
+ function or data, the facility still operates, and performs
58
+ whatever part of its purpose remains meaningful, or
59
+
60
+ b) under the GNU GPL, with none of the additional permissions of
61
+ this License applicable to that copy.
62
+
63
+ 3. Object Code Incorporating Material from Library Header Files.
64
+
65
+ The object code form of an Application may incorporate material from
66
+ a header file that is part of the Library. You may convey such object
67
+ code under terms of your choice, provided that, if the incorporated
68
+ material is not limited to numerical parameters, data structure
69
+ layouts and accessors, or small macros, inline functions and templates
70
+ (ten or fewer lines in length), you do both of the following:
71
+
72
+ a) Give prominent notice with each copy of the object code that the
73
+ Library is used in it and that the Library and its use are
74
+ covered by this License.
75
+
76
+ b) Accompany the object code with a copy of the GNU GPL and this license
77
+ document.
78
+
79
+ 4. Combined Works.
80
+
81
+ You may convey a Combined Work under terms of your choice that,
82
+ taken together, effectively do not restrict modification of the
83
+ portions of the Library contained in the Combined Work and reverse
84
+ engineering for debugging such modifications, if you also do each of
85
+ the following:
86
+
87
+ a) Give prominent notice with each copy of the Combined Work that
88
+ the Library is used in it and that the Library and its use are
89
+ covered by this License.
90
+
91
+ b) Accompany the Combined Work with a copy of the GNU GPL and this license
92
+ document.
93
+
94
+ c) For a Combined Work that displays copyright notices during
95
+ execution, include the copyright notice for the Library among
96
+ these notices, as well as a reference directing the user to the
97
+ copies of the GNU GPL and this license document.
98
+
99
+ d) Do one of the following:
100
+
101
+ 0) Convey the Minimal Corresponding Source under the terms of this
102
+ License, and the Corresponding Application Code in a form
103
+ suitable for, and under terms that permit, the user to
104
+ recombine or relink the Application with a modified version of
105
+ the Linked Version to produce a modified Combined Work, in the
106
+ manner specified by section 6 of the GNU GPL for conveying
107
+ Corresponding Source.
108
+
109
+ 1) Use a suitable shared library mechanism for linking with the
110
+ Library. A suitable mechanism is one that (a) uses at run time
111
+ a copy of the Library already present on the user's computer
112
+ system, and (b) will operate properly with a modified version
113
+ of the Library that is interface-compatible with the Linked
114
+ Version.
115
+
116
+ e) Provide Installation Information, but only if you would otherwise
117
+ be required to provide such information under section 6 of the
118
+ GNU GPL, and only to the extent that such information is
119
+ necessary to install and execute a modified version of the
120
+ Combined Work produced by recombining or relinking the
121
+ Application with a modified version of the Linked Version. (If
122
+ you use option 4d0, the Installation Information must accompany
123
+ the Minimal Corresponding Source and Corresponding Application
124
+ Code. If you use option 4d1, you must provide the Installation
125
+ Information in the manner specified by section 6 of the GNU GPL
126
+ for conveying Corresponding Source.)
127
+
128
+ 5. Combined Libraries.
129
+
130
+ You may place library facilities that are a work based on the
131
+ Library side by side in a single library together with other library
132
+ facilities that are not Applications and are not covered by this
133
+ License, and convey such a combined library under terms of your
134
+ choice, if you do both of the following:
135
+
136
+ a) Accompany the combined library with a copy of the same work based
137
+ on the Library, uncombined with any other library facilities,
138
+ conveyed under the terms of this License.
139
+
140
+ b) Give prominent notice with the combined library that part of it
141
+ is a work based on the Library, and explaining where to find the
142
+ accompanying uncombined form of the same work.
143
+
144
+ 6. Revised Versions of the GNU Lesser General Public License.
145
+
146
+ The Free Software Foundation may publish revised and/or new versions
147
+ of the GNU Lesser General Public License from time to time. Such new
148
+ versions will be similar in spirit to the present version, but may
149
+ differ in detail to address new problems or concerns.
150
+
151
+ Each version is given a distinguishing version number. If the
152
+ Library as you received it specifies that a certain numbered version
153
+ of the GNU Lesser General Public License "or any later version"
154
+ applies to it, you have the option of following the terms and
155
+ conditions either of that published version or of any later version
156
+ published by the Free Software Foundation. If the Library as you
157
+ received it does not specify a version number of the GNU Lesser
158
+ General Public License, you may choose any version of the GNU Lesser
159
+ General Public License ever published by the Free Software Foundation.
160
+
161
+ If the Library as you received it specifies that a proxy can decide
162
+ whether future versions of the GNU Lesser General Public License shall
163
+ apply, that proxy's public statement of acceptance of any version is
164
+ permanent authorization for you to choose that version for the
165
+ Library.