Skip to content
Snippets Groups Projects
Commit 62c3d6ad authored by Lauri Himanen's avatar Lauri Himanen
Browse files

Updated the setuptools settings and README.

parent baef37b7
No related branches found
No related tags found
No related merge requests found
...@@ -63,6 +63,15 @@ folder *cp2k/test/unittests*. Here is an example of the call syntax: ...@@ -63,6 +63,15 @@ folder *cp2k/test/unittests*. Here is an example of the call syntax:
mpl.show() mpl.show()
``` ```
To install this standalone version, you need to clone the repositories
"python-common", "nomad-meta-info", and "parser-cp2k" into the same folder.
Then install the python-common according to the instructions found in the
README. After that, you can install this package by running:
```sh
python setup.py develop --user
```
# Tools and Methods # Tools and Methods
This section describes some of the guidelines that are used in the development This section describes some of the guidelines that are used in the development
of this parser. of this parser.
......
...@@ -15,8 +15,8 @@ class CP2KParser(ParserInterface): ...@@ -15,8 +15,8 @@ class CP2KParser(ParserInterface):
After the implementation has been setup, you can parse the files with After the implementation has been setup, you can parse the files with
parse(). parse().
""" """
def __init__(self, main_file, metainfo_to_keep=None, backend=None, default_units=None, metainfo_units=None): def __init__(self, main_file, metainfo_to_keep=None, backend=None, default_units=None, metainfo_units=None, debug=True, store=True):
super(CP2KParser, self).__init__(main_file, metainfo_to_keep, backend, default_units, metainfo_units) super(CP2KParser, self).__init__(main_file, metainfo_to_keep, backend, default_units, metainfo_units, debug, store)
def setup_version(self): def setup_version(self):
"""Setups the version by looking at the output file and the version """Setups the version by looking at the output file and the version
......
...@@ -11,7 +11,6 @@ def main(): ...@@ -11,7 +11,6 @@ def main():
setup( setup(
name="cp2kparser", name="cp2kparser",
version="0.1", version="0.1",
include_package_data=True,
package_data={ package_data={
'cp2kparser.versions.cp2k262': ['input_data/cp2k_input_tree.pickle'], 'cp2kparser.versions.cp2k262': ['input_data/cp2k_input_tree.pickle'],
}, },
...@@ -19,6 +18,7 @@ def main(): ...@@ -19,6 +18,7 @@ def main():
author="Lauri Himanen", author="Lauri Himanen",
author_email="lauri.himanen@aalto.fi", author_email="lauri.himanen@aalto.fi",
license="GPL3", license="GPL3",
package_dir={'': 'parser/parser-cp2k'},
packages=find_packages(), packages=find_packages(),
install_requires=[ install_requires=[
'pint', 'pint',
...@@ -26,7 +26,6 @@ def main(): ...@@ -26,7 +26,6 @@ def main():
'mdtraj', 'mdtraj',
'ase' 'ase'
], ],
zip_safe=False
) )
# Run main function by default # Run main function by default
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment