mirror of
https://github.com/LCPQ/quantum_package
synced 2024-10-19 22:41:48 +02:00
plugins file in docs
This commit is contained in:
parent
414df84781
commit
3b2a2f66ca
@ -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
|
Create a repository, for example :file:`qp_plugins_user`, hosted somewhere
|
||||||
(GitLab, GitHub, etc...), and clone the repository in the
|
(GitLab, GitHub, etc...), and clone the repository in the
|
||||||
:file:`$QP_ROOT/plugins` directory.
|
: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
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -6,6 +6,7 @@ Module utilitary
|
|||||||
Usage:
|
Usage:
|
||||||
module_handler.py print_descendant [<module_name>...]
|
module_handler.py print_descendant [<module_name>...]
|
||||||
module_handler.py clean [ --all | <module_name>...]
|
module_handler.py clean [ --all | <module_name>...]
|
||||||
|
module_handler.py create_git_ignore [<module_name>...]
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
print_descendant Print the genealogy of the needed modules
|
print_descendant Print the genealogy of the needed modules
|
||||||
@ -262,4 +263,5 @@ if __name__ == '__main__':
|
|||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
if arguments["create_git_ignore"]:
|
||||||
|
pass
|
||||||
|
@ -222,7 +222,6 @@ subroutine make_selection_buffer_s2(b)
|
|||||||
endif
|
endif
|
||||||
enddo
|
enddo
|
||||||
if (dup) then
|
if (dup) then
|
||||||
! val(i) = val(i) + val(j)
|
|
||||||
val(i) = max(val(i), val(j))
|
val(i) = max(val(i), val(j))
|
||||||
duplicate(j) = .True.
|
duplicate(j) = .True.
|
||||||
endif
|
endif
|
||||||
@ -295,7 +294,7 @@ subroutine make_selection_buffer_s2(b)
|
|||||||
if (k > n_d) exit
|
if (k > n_d) exit
|
||||||
enddo
|
enddo
|
||||||
deallocate(o)
|
deallocate(o)
|
||||||
b%N = 2*n_d
|
b%N = n_d
|
||||||
b%cur = n_d
|
b%cur = n_d
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user