- You can do
(v1.0) pkg> generate PDMPand copy over theProject.tomlfile to the already existing project. Just make sure the existing project contains this subtree
At this point, your project will be a valid Pkg project. The rest of the process is more documented.├── Project.toml └── src └── PDMP.jl - To develop the project: activate it and add dependencies:
(v1.0) pkg> activate ~/work/prog_gd/julia/dev/PDMP.jl(PDMP) pkg> add Dep1 Dep2 ...
- Now you can develop your project; just make sure your project stays activated. In other words: as long as the Pkg prompt is
(PDMP) pkg>you will be able to dojulia> import PDMP.
Conceptually:
- Step 1 gets you to a valid project directory in a slightly hacky way (there is an open PR.)
- Pkg is based on environments. You point Pkg at the environment you want to use by using
activate. You specify the packages which should be available in that environment by usingadd. - Once you set up your environment, you can develop normally. You can load any dependency declared in your
Project.tomlfile withusing/import.