Skip to content

Commit

Permalink
install directly using git
Browse files Browse the repository at this point in the history
  • Loading branch information
mmicko committed Sep 29, 2023
1 parent 5842931 commit dd47698
Showing 1 changed file with 4 additions and 18 deletions.
22 changes: 4 additions & 18 deletions default/scripts/pyhdl.sh
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}/.

0 comments on commit dd47698

Please sign in to comment.