Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling with conda fails during installation #259

Open
spreiter opened this issue Feb 9, 2022 · 2 comments
Open

Compiling with conda fails during installation #259

spreiter opened this issue Feb 9, 2022 · 2 comments

Comments

@spreiter
Copy link

spreiter commented Feb 9, 2022

Hi,

many of our machines still run on SL7 and since Python 3.6 reached is end, we want to move to a conda environment.
Besides our necessary packages I created an environment with pugixml and boost installed.
My config:

channel_priority: strict
channels:
    conda-forge
    default

The compilation works, but when I want to install the Python bindings it fails.
Command:

make install prefix=$CONDA_PREFIX

Output:

# Change into rpm/pkg to finally run the customized setup.py
if [ -f setup.cfg ]; then cp setup.cfg /root/ipbus-software/uhal/pycohal/rpm/RPMBUILD/ ; fi
cd /root/ipbus-software/uhal/pycohal/rpm/RPMBUILD && \
  bindir=/usr/local/envs/py38/bin python cactuscore-uhal-pycohal.py install --prefix=/usr/local/envs/py38 --exec-prefix=/usr/local/envs/py38
running install
running bdist_egg
/usr/local/envs/py38/lib/python3.8/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
/usr/local/envs/py38/lib/python3.8/site-packages/setuptools/command/easy_install.py:158: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
error: error in 'egg_base' option: '' does not exist or is not a directory
make[2]: *** [install] Error 1

I am not experienced with pip. Anyone an idea how to proper install the Python bindings. Am I maybe missing some argument?
I was following https://ipbus.web.cern.ch/doc/user/html/software/install/compile.html

PS: Using version 2.7.9

@andrzejnovak
Copy link

@spreiter I'd also be interested in a working conda build, have you figured it out by any chance?

@spreiter
Copy link
Author

Sadly no. I gave up at some point. For Python 3.6 I compiled it with the system Python binary and its libraries and copied it afterwards into the conda environment. This is definitely not a nice solution, but it worked so far without problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants