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

Problem and Solution for Consolidating Build Setup - Suggested contribution #228

Open
owen-oqc opened this issue Jan 12, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@owen-oqc
Copy link

owen-oqc commented Jan 12, 2023

Is your feature request related to a problem? Please describe.

The build instructions differ significantly from OS to OS and require a number of automated installation steps.

Describe the solution you had in mind

I have worked through your build instructions and generated a conda env that pulls all the requirements together. That would make the setup steps looks like.

conda env create -f pyqir.yaml && conda activate pyqir

Which can bring in cmake, rust, python 3.9, ....

This works well on my OSX M1 env

Additional context

As I have done this i'd gladly make the contribution directly if you wanted it.

@owen-oqc owen-oqc added the enhancement New feature or request label Jan 12, 2023
@idavis
Copy link
Collaborator

idavis commented Feb 7, 2023

Hi @owen-oqc, I'd be happy to look a potential setup with conda. If you would like to submit a PR or post your environment file here, we can take a look and discuss.

@ausbin
Copy link
Contributor

ausbin commented Jun 3, 2024

If anyone else is not interested in installing PowerShell, it seems you can build and test the Python extension as follows (assuming llvm-config for your LLVM build is in your $PATH):

$ python3 -m venv venv
$ . venv/bin/activate
$ cd pyqir
$ pip install -v --config-settings=build-args='-F qirlib/llvm14-0 -F pyqir/llvm14-0' .[test]
$ pytest

Works for me on Debian bookworm

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

No branches or pull requests

3 participants