Giter Club home page Giter Club logo

deploy's Introduction

Build Status Build status

OpenAlea Lab

Documentation

Official documentation is available at openalea.github.io

Install

To install OpenAlea use conda

If you want to retrieve the code from git, use git clone. Then use this command that will retrieve all the submodules::

git submodule update --init --recursive

Contribute

If you want to contribute to code, please have a look to github workflow

deploy's People

Contributors

cokelaer avatar dbarbeau avatar ethan13310 avatar fredboudon avatar gbaty avatar jpeyhardi avatar pfernique avatar pradal avatar revesansparole avatar ricomos avatar thomasarsouze avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

deploy's Issues

hidden namespace in conda / develop mode

I install caribu with conda using :
conda install -c fredboudon alinea.caribu

everything is okay, i can import it without trouble

Then installing an alinea module in develop mode (python setup.py develop) , result in a import error for caribu:

In [1]: import alinea.caribu

ModuleNotFoundError Traceback (most recent call last)
in
----> 1 import alinea.caribu

ModuleNotFoundError: No module named 'alinea.caribu'

But the following works:

import openalea
import alinea.caribu

Any clues ?

Missing pywin32 dependancie install on window

With install of caribu package, installation fail with "python setup.py develop" with message error "No module named win32gui".

Every thing is fine, after installation of pywin32 package.

Probabily is right to add pywin32 as dependacie to deploy package on window OS ?

Add Conda support

Add conda support to OpenAlea.Deploy.
Follow the same guidelines used for VirtualEnv:

  • Modify util.py:
    • add is_conda_env()
    • modify check_system()
    • update the code of the different functions
  • Modify install_lib.py
    • do not depends on eggs
  • Modify command.py to manage correctly conda env

Add CI and co

Add CI with travis and appveyor
Build the doc with readthedoc
Automatically build conda package on Linux, Windows & Mac

Adapt openalea.deploy to conda

When deploy is used in Conda, some modifications have to be done:
i. The scons step can be done by setting an appropriate build_prefix
ii Specific features of deploy have to be conserved (share data, create_namespace, ...)
iii.Other have to be disabled (update env variables, .openalea.sh creation, use of lib_dir, include_dir, bin_dir, ...)

Refactor deploy

With conda, deploy is not as usefull.
The main two functionalities are :

  • the management of python setup.py develop for binary packages
  • the installation of shared data
  • the integration of scons or cmake with setup.py

Remove all the uneeded code and update deploy to be closer to conda

Error in setup.py with share_dirs in adel

Reading metainfo
...version: 1.6.0
...release: 1.6
...project: alinea
...name: Alinea.Adel
...namespace: alinea
...pkg_name: alinea.adel
...package: adel
...description: ADEL
...long_description: The Adel package characterise 3D plant development for raminae crops.
...authors: Christian Fournier, Christophe Pradal
...authors_email: [email protected]
...url: http://openalea.gforge.inria.fr
...license: Cecill-C
running develop
INSTALL LIB: C:\Users\mlabadie\miniconda3\envs\openalea-incubator\Library\lib
Traceback (most recent call last):
File ".\setup.py", line 26, in
setup(
File "C:\Users\mlabadie\miniconda3\envs\openalea-incubator\lib\site-packages\setuptools_init_.py", line 163, in setup
return distutils.core.setup(**attrs)
File "C:\Users\mlabadie\miniconda3\envs\openalea-incubator\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "C:\Users\mlabadie\miniconda3\envs\openalea-incubator\lib\distutils\dist.py", line 966, in run_commands
self.run_command(cmd)
File "C:\Users\mlabadie\miniconda3\envs\openalea-incubator\lib\distutils\dist.py", line 984, in run_command
cmd_obj.ensure_finalized()
File "C:\Users\mlabadie\miniconda3\envs\openalea-incubator\lib\distutils\cmd.py", line 107, in ensure_finalized
self.finalize_options()
File "c:\users\mlabadie\miniconda3\envs\openalea-incubator\lib\site-packages\openalea.deploy-2.1.8-py3.8.egg\openalea\deploy\command.py", line 965, in finalize_options
for dest_dir, src_dir in d.items():

Bug in Conda support

Conda install do not install lib and include in conda file system.
All the files stay in the egg.
The .openalea.sh is modified and deploy try to copy the libs in /usr/local/lib on Mac.

See #2

Python 2.7 syntax error

dependency_builder.py is not anymore Python 2.7 compatible.
The package openalea.deploy can not be installed on Linux.

Add find_wralea for setup.py

SetupTools provides find_package.
We can implement the same to find openalea package containing wralea.py files

Install with conda

I created a conda environment 'toto' (with conda version 4.8.3) in which I installed Python 3.7, alinea.astk alinea.caribu openalea.lpy openalea.mtg from the channels conda-forge and fredboudon.

Then, I installed adel. Adel's installation created the following file in my conda environment envs\toto\etc\conda\activate.d\openalea.bat.
This file seems to have been created by openalea/deploy/environ_var.py
The batch is called when activating my environment toto, leading to the following message.

(base) C:\Users\mngauthier\Documents\Marion_These\WheatFspm\adel>conda activate toto
C:\Users\mngauthier\Documents\Marion_These\WheatFspm\adel>############ Configuration ############
'############' n’est pas reconnu en tant que commande interne
ou externe, un programme exécutable ou un fichier de commandes.
-z était inattendu.
C:\Users\mngauthier\Documents\Marion_These\WheatFspm\adel>if [ -z "$PATH" ]; then
C:\Users\mngauthier\Documents\Marion_These\WheatFspm\adel>

The consequence is that I can not activate my environment.
However, deleting 'etc\conda\activate.d\openalea.bat` solved the issue.

2.1.6 Release

I am preparing the conda-forge recipe for this package, but in order for it to reflect the most recent version (2.1.6), there will need to be a .tar.gz release for 2.1.6 (the most recent one is 2.1.1).

Should I just using 2.1.1 or can a release be made for 2.1.6?

python setup.py install fail on conda

python setup.py install fail on conda with packages which have binary dependencies.

Install libraries, binaries and include with scons install prefix=$CONDA_PREFIX to be sure to install everything correctly.

Problem will be to uninstall already installed libs.

Error with conda environment

There is an error when building a package with setup.py in a CONDA environment.
The PREFIX variable is not defined.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.