f4pga: add setup.py

Signed-off-by: Unai Martinez-Corral <umartinezcorral@antmicro.com>
This commit is contained in:
Unai Martinez-Corral 2022-03-20 03:59:49 +01:00
parent ee300edf64
commit 1c93264c3a
2 changed files with 34 additions and 0 deletions

View File

@ -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

26
f4pga/setup.py Normal file
View File

@ -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',
)