diff --git a/.github/workflows/Pipeline.yml b/.github/workflows/Pipeline.yml index 40f2d43..3fa5028 100644 --- a/.github/workflows/Pipeline.yml +++ b/.github/workflows/Pipeline.yml @@ -67,6 +67,14 @@ jobs: - name: '🔧 Prepare environment' run: ./.github/scripts/prepare_environment.sh + - name: '🐍 Install f4pga (pip)' + run: | + . ./.github/scripts/activate.sh + + cd f4pga + pip install --use-feature=in-tree-build . + cd .. + - name: '🚧 Test f4pga-env' run: | . ./.github/scripts/activate.sh diff --git a/f4pga/setup.py b/f4pga/setup.py new file mode 100644 index 0000000..d1d83f1 --- /dev/null +++ b/f4pga/setup.py @@ -0,0 +1,26 @@ +#!/usr/bin/env python3 + +from pathlib import Path + +from setuptools import setup as setuptools_setup + + +packagePath = Path(__file__).resolve().parent + +setuptools_setup( + name=packagePath.name, + version="0.0.0", + license="Apache-2.0", + author="F4PGA Authors", + description="F4PGA.", + url="https://github.com/chipsalliance/f4pga", + packages=[ + "f4pga.wrappers.sh", + ], + package_dir={"f4pga": "."}, + package_data={ + 'f4pga.wrappers.sh': ['xc7/*.f4pga.sh', 'quicklogic/*.f4pga.sh'] + }, + classifiers=[], + python_requires='>=3.6', +)