I am trying to create a conda package from my sources, but I am stuck with part of the build/entry_pointsconfiguration file meta.yaml.
Explanations:
Here is my setup.pyfile that works correctly with pip:
from setuptools import setup, find_packages
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
with open('requirements.txt') as f:
required = f.read().splitlines()
setup(
name='myproject',
version='1.1.0',
description='My project',
long_description=long_description,
url='',
author='Me',
author_email='me@me.com',
license='',
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Programming Language :: Python :: 3.4',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'Environment :: Console',
'Natural Language :: English',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 3.4',
'Topic :: Database :: Front-Ends',
'Topic :: Adaptive Technologies',
'Topic :: Scientific/Engineering :: Bio-Informatics',
'Topic :: Software Development',
],
keywords='workflow manager python object-oriented reproducible science database framework',
packages=find_packages(exclude=['log', 'doc', '*.test.*', 'soutenance', 'rapport']),
install_requires=required,
package_data={},
data_files=[],
entry_points={
'console_scripts':['wopmars=src.main.fr.tagc.wopmars.wopmars:main']
}
)
Here is my meta.yamlconda recipe file.
package:
name: wopmars
version: "1.1.0"
build:
entry_points:
- wopmars = src.main.fr.tagc.wopmars.wopmars:main
requirements:
build:
- python
- setuptools
run:
- python
The file is build.shalso present and contains $PYTHON setup.py install.
Then I create the conda package:
(test_wop) luc@everest:~/Documents/WORK/wopmars$ conda build .
Removing old build environment
BUILD START: wopmars-1.1.0-py35_0
Fetching package metadata .........
Solving package specifications: ..........
The following NEW packages will be INSTALLED:
openssl: 1.0.2h-1
pip: 8.1.2-py35_0
python: 3.5.2-0
readline: 6.2-2
setuptools: 23.0.0-py35_0
sqlite: 3.13.0-0
tk: 8.5.18-0
wheel: 0.29.0-py35_0
xz: 5.2.2-0
zlib: 1.2.8-3
Linking packages ...
[ COMPLETE ]|
Package: wopmars-1.1.0-py35_0
source tree in: /home/luc/bin/anaconda3/conda-bld/work/pyinstrument-0.13.1
+ source activate /home/luc/bin/anaconda3/envs/_build
++ [[ -n 4.3.42(1)-release ]]
++ _SCRIPT_LOCATION=/home/luc/bin/anaconda3/envs/_build/bin/activate
++ SHELL=bash
+++ dirname /home/luc/bin/anaconda3/envs/_build/bin/activate
++ _CONDA_DIR=/home/luc/bin/anaconda3/envs/_build/bin
++ '[' 1 -gt 1 ']'
++ case "$(uname -s)" in
+++ uname -s
++ EXT=
++ [[ -n 4.3.42(1)-release ]]
+++ basename /home/luc/bin/anaconda3/conda-bld/work/pyinstrument-0.13.1/conda_build.sh
++ [[ conda_build.sh == \a\c\t\i\v\a\t\e ]]
++ '[' 1 -eq 0 ']'
++ args=/home/luc/bin/anaconda3/envs/_build
++ /home/luc/bin/anaconda3/envs/_build/bin/conda ..checkenv bash /home/luc/bin/anaconda3/envs/_build
++ (( 0 != 0 ))
++ source /home/luc/bin/anaconda3/envs/_build/bin/deactivate
+++ [[ -n 4.3.42(1)-release ]]
+++ _SCRIPT_LOCATION=/home/luc/bin/anaconda3/envs/_build/bin/deactivate
+++ SHELL=bash
++++ dirname /home/luc/bin/anaconda3/envs/_build/bin/deactivate
+++ _CONDA_DIR=/home/luc/bin/anaconda3/envs/_build/bin
+++ case "$(uname -s)" in
++++ uname -s
+++ EXT=
+++ [[ 1 > 0 ]]
+++ key=/home/luc/bin/anaconda3/envs/_build
+++ case $key in
+++ shift
+++ [[ 0 > 0 ]]
+++ [[ -n 4.3.42(1)-release ]]
++++ basename /home/luc/bin/anaconda3/conda-bld/work/pyinstrument-0.13.1/conda_build.sh
+++ [[ conda_build.sh == \d\e\a\c\t\i\v\a\t\e ]]
+++ [[ -z '' ]]
+++ [[ -n 4.3.42(1)-release ]]
++++ basename /home/luc/bin/anaconda3/conda-bld/work/pyinstrument-0.13.1/conda_build.sh
+++ [[ conda_build.sh == \d\e\a\c\t\i\v\a\t\e ]]
+++ return 0
+++ /home/luc/bin/anaconda3/envs/_build/bin/conda ..activate bash /home/luc/bin/anaconda3/envs/_build
++ _NEW_PART=/home/luc/bin/anaconda3/envs/_build/bin
++ (( 0 == 0 ))
++ export CONDA_PATH_BACKUP=/home/luc/bin/anaconda3/envs/_build/bin:/home/luc/bin/anaconda3/envs/test_wop/bin:/home/luc/bin:/home/luc/bin/anaconda3/bin:/home/luc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
++ CONDA_PATH_BACKUP=/home/luc/bin/anaconda3/envs/_build/bin:/home/luc/bin/anaconda3/envs/test_wop/bin:/home/luc/bin:/home/luc/bin/anaconda3/bin:/home/luc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
++ export CONDA_PS1_BACKUP=
++ CONDA_PS1_BACKUP=
++ export PATH=/home/luc/bin/anaconda3/envs/_build/bin:/home/luc/bin/anaconda3/envs/_build/bin:/home/luc/bin/anaconda3/envs/test_wop/bin:/home/luc/bin:/home/luc/bin/anaconda3/bin:/home/luc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
++ PATH=/home/luc/bin/anaconda3/envs/_build/bin:/home/luc/bin/anaconda3/envs/_build/bin:/home/luc/bin/anaconda3/envs/test_wop/bin:/home/luc/bin:/home/luc/bin/anaconda3/bin:/home/luc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
++ [[ '' == *
And here the problem arises: I don’t understand why it displays a lot of information about the package pyinstrument, but a little about my package, wopmars(the package pyinstrumentwas used during the tutorial conda)
But I keep going, and I'm trying to install wopmars:
(test_wop) luc@everest:~/Documents/WORK/wopmars$ conda install --use-local wopmars
Fetching package metadata .........
Solving package specifications: ..........
Package plan for installation in environment /home/luc/bin/anaconda3/envs/test_wop:
The following NEW packages will be INSTALLED:
wopmars: 1.1.0-py35_0 local
Proceed ([y]/n)?
Linking packages ...
[ COMPLETE ]|
Everything seems to be ok IMO BUT:
(test_wop) luc@everest:~/Documents/WORK/wopmars$ wopmars
bash: /home/luc/bin/anaconda3/envs/test_wop/bin/wopmars: Aucun fichier ou dossier de ce type
(cannot find this type of file or directory)
, , - , , .
entry_points conda?