10
0
mirror of https://github.com/LCPQ/quantum_package synced 2024-06-02 11:25:26 +02:00

plugins file in docs

This commit is contained in:
Anthony Scemama 2018-12-25 10:32:28 +01:00
parent 414df84781
commit 3b2a2f66ca
3 changed files with 52 additions and 6 deletions

View File

@ -1,12 +1,57 @@
=====================
Creating a new plugin
=====================
==========================
Working with plugins
==========================
Installing a remote plugin
--------------------------
Download an external repository of plugins::
qp_plugins download http://somewhere/over/the/rainbow/ext_repo
This installs the repository of external plugins :file:`ext_repo` in
:file:`$QP_ROOT/plugins`.
Now, the external plugin :file:`ext_module` contained in the repository
:file:`ext_repo` can be installed using::
qp_plugins install ext_module
The module is now accessible via a symbolic link in :file:`$QP_ROOT/src`,
and can be compiled as any module.
To uninstall the plugin, run::
qp_plugins uninstall ext_module
Creating a repository of plugins
--------------------------------
Create a repository, for example :file:`qp_plugins_user`, hosted somewhere
(GitLab, GitHub, etc...), and clone the repository in the
:file:`$QP_ROOT/plugins` directory.
Creating new plugins
--------------------
To create a new plugin named :file:`my_plugin` in this repository, run::
qp_plugins create -n my_plugin -r qp_plugins_user
Now, the plugin needs to be installed to be compiled::
qp_plugins install my_plugin

View File

@ -6,6 +6,7 @@ Module utilitary
Usage:
module_handler.py print_descendant [<module_name>...]
module_handler.py clean [ --all | <module_name>...]
module_handler.py create_git_ignore [<module_name>...]
Options:
print_descendant Print the genealogy of the needed modules
@ -262,4 +263,5 @@ if __name__ == '__main__':
except:
pass
if arguments["create_git_ignore"]:
pass

View File

@ -222,7 +222,6 @@ subroutine make_selection_buffer_s2(b)
endif
enddo
if (dup) then
! val(i) = val(i) + val(j)
val(i) = max(val(i), val(j))
duplicate(j) = .True.
endif
@ -295,7 +294,7 @@ subroutine make_selection_buffer_s2(b)
if (k > n_d) exit
enddo
deallocate(o)
b%N = 2*n_d
b%N = n_d
b%cur = n_d
end