-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
4 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,7 @@ | ||
source ${PATCHES_DIR}/python3_package.sh | ||
python3_package_setup | ||
python3_package_pip_install "pyyaml setuptools_scm" | ||
|
||
mkdir -p ${OUTPUT_DIR}${INSTALL_PREFIX}/lib/python3.8/site-packages/pyhdl | ||
for target in *; do | ||
if [ $target != 'python3' ]; then | ||
cp -r $target ${OUTPUT_DIR}${INSTALL_PREFIX}/lib/python3.8/site-packages/pyhdl/. | ||
fi | ||
done | ||
|
||
cd ${OUTPUT_DIR}${INSTALL_PREFIX}/lib/python3.8/site-packages/pyhdl | ||
for target in *; do | ||
pushd $target | ||
python3_package_develop "--egg-path ./pyhdl/$target" | ||
popd | ||
done | ||
( find . -type d -name ".git" && find . -name ".gitignore" && find . -name ".gitmodules" && find . -name ".gitattributes" && find . -name ".github" ) | xargs rm -rf | ||
|
||
python3_package_pth pyhdl | ||
python3_package_pip_install "git+https://github.com/amaranth-lang/amaranth" | ||
python3_package_pip_install "git+https://github.com/amaranth-lang/amaranth-boards" | ||
python3_package_pip_install "git+https://github.com/m-labs/migen" | ||
mv ${OUTPUT_DIR}${INSTALL_PREFIX}/lib/python3.8/site-packages/bin ${OUTPUT_DIR}${INSTALL_PREFIX}/. | ||
|