Skip to content

Commit

Permalink
Deliver overlay with the package into the site-package directory. Fix #…
Browse files Browse the repository at this point in the history
…50

- Include pynq.overlays entry point in setup.py
- Update notebooks to only use bitstream name
  • Loading branch information
Mario Ruiz committed Feb 1, 2022
1 parent 5ea3059 commit eac23b1
Show file tree
Hide file tree
Showing 23 changed files with 27 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"source": [
"from pynq_composable import DifferenceGaussians, VSource, VSink\n",
"\n",
"app = DifferenceGaussians(\"../overlay/cv_dfx_4_pr.bit\", VSource.MIPI, VSink.DP)"
"app = DifferenceGaussians(\"cv_dfx_4_pr.bit\", VSource.MIPI, VSink.DP)"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"source": [
"from pynq_composable import CornerDetect, VSource, VSink\n",
"\n",
"app = CornerDetect(\"../overlay/cv_dfx_4_pr.bit\", VSource.MIPI, sink=VSink.DP)"
"app = CornerDetect(\"cv_dfx_4_pr.bit\", VSource.MIPI, sink=VSink.DP)"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"source": [
"from pynq_composable import ColorDetect, VSource, VSink\n",
"\n",
"app = ColorDetect(\"../overlay/cv_dfx_4_pr.bit\", VSource.MIPI, sink=VSink.DP)"
"app = ColorDetect(\"cv_dfx_4_pr.bit\", VSource.MIPI, sink=VSink.DP)"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"source": [
"from pynq_composable import ColorDetect, VSource, VSink\n",
"\n",
"app = ColorDetect(\"../overlay/cv_dfx_4_pr.bit\", VSource.OpenCV, sink=VSink.DP)"
"app = ColorDetect(\"cv_dfx_4_pr.bit\", VSource.OpenCV, sink=VSink.DP)"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"source": [
"from pynq_composable import ColorDetect, VSource, VSink\n",
"\n",
"app = ColorDetect(\"../overlay/cv_dfx_4_pr.bit\", VSource.OpenCV, sink=VSink.DP, file='../mountains.mp4')"
"app = ColorDetect(\"cv_dfx_4_pr.bit\", VSource.OpenCV, sink=VSink.DP, file='../mountains.mp4')"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"from pynq_composable import *\n",
"from ipywidgets import widgets, interact, FloatSlider, IntSlider\n",
"\n",
"ol = Overlay(\"../overlay/cv_dfx_4_pr.bit\")\n",
"ol = Overlay(\"cv_dfx_4_pr.bit\")\n",
"\n",
"cpipe = ol.composable"
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"source": [
"from pynq_composable import Filter2DApp\n",
"\n",
"app = Filter2DApp(\"../overlay/cv_dfx_4_pr.bit\")"
"app = Filter2DApp(\"cv_dfx_4_pr.bit\")"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"source": [
"from pynq_composable import LutApp\n",
"\n",
"app = LutApp(\"../overlay/cv_dfx_4_pr.bit\")"
"app = LutApp(\"cv_dfx_4_pr.bit\")"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"source": [
"from pynq_composable import DifferenceGaussians, VSource\n",
"\n",
"app = DifferenceGaussians(\"../overlay/cv_dfx_4_pr.bit\", VSource.MIPI)"
"app = DifferenceGaussians(\"cv_dfx_4_pr.bit\", VSource.MIPI)"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"source": [
"from pynq_composable import CornerDetect, VSource\n",
"\n",
"app = CornerDetect(\"../overlay/cv_dfx_4_pr.bit\", VSource.MIPI)"
"app = CornerDetect(\"cv_dfx_4_pr.bit\", VSource.MIPI)"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"from pynq_composable import *\n",
"import numpy as np\n",
"\n",
"ol = Overlay(\"../overlay/cv_dfx_4_pr.bit\")\n",
"ol = Overlay(\"cv_dfx_4_pr.bit\")\n",
"\n",
"cpipe = ol.composable"
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"source": [
"from pynq_composable import DifferenceGaussians\n",
"\n",
"app = DifferenceGaussians(\"../overlay/cv_dfx_4_pr.bit\")"
"app = DifferenceGaussians(\"cv_dfx_4_pr.bit\")"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"source": [
"from pynq_composable import CornerDetect\n",
"\n",
"app = CornerDetect(\"../overlay/cv_dfx_4_pr.bit\")"
"app = CornerDetect(\"cv_dfx_4_pr.bit\")"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"source": [
"from pynq_composable import ColorDetect\n",
"\n",
"app = ColorDetect(\"../overlay/cv_dfx_4_pr.bit\")"
"app = ColorDetect(\"cv_dfx_4_pr.bit\")"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
"from pynq import Overlay\n",
"import pynq_composable\n",
"\n",
"ol = Overlay(\"../overlay/cv_dfx_4_pr.bit\")"
"ol = Overlay(\"cv_dfx_4_pr.bit\")"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"from pynq.lib.video import *\n",
"from pynq_composable import *\n",
"\n",
"ol = Overlay(\"../overlay/cv_dfx_4_pr.bit\")\n",
"ol = Overlay(\"cv_dfx_4_pr.bit\")\n",
"\n",
"cpipe = ol.composable"
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"from pynq.lib.video import *\n",
"from pynq_composable import *\n",
"\n",
"ol = Overlay(\"../overlay/cv_dfx_4_pr.bit\")\n",
"ol = Overlay(\"cv_dfx_4_pr.bit\")\n",
"\n",
"cpipe = ol.composable"
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"from pynq.lib.video import *\n",
"from pynq_composable import *\n",
"\n",
"ol = Overlay(\"../overlay/cv_dfx_4_pr.bit\")\n",
"ol = Overlay(\"cv_dfx_4_pr.bit\")\n",
"\n",
"cpipe = ol.composable"
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"from pynq.lib.video import *\n",
"from pynq_composable import *\n",
"\n",
"ol = Overlay(\"../overlay/cv_dfx_4_pr.bit\")\n",
"ol = Overlay(\"cv_dfx_4_pr.bit\")\n",
"\n",
"cpipe = ol.composable"
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"from pynq.lib.video import *\n",
"from pynq_composable import *\n",
"\n",
"ol = Overlay(\"../overlay/cv_dfx_4_pr.bit\")\n",
"ol = Overlay(\"cv_dfx_4_pr.bit\")\n",
"\n",
"cpipe = ol.composable"
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"from pynq.lib.video import *\n",
"from pynq_composable import *\n",
"\n",
"ol = Overlay(\"../overlay/cv_dfx_4_pr.bit\")\n",
"ol = Overlay(\"cv_dfx_4_pr.bit\")\n",
"\n",
"cpipe = ol.composable"
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"from ipywidgets import widgets, interact, FloatSlider, IntSlider\n",
"from pynq.ps import CPU_ARCH, ZYNQ_ARCH\n",
"\n",
"ol = Overlay(\"../overlay/cv_dfx_4_pr.bit\")\n",
"ol = Overlay(\"cv_dfx_4_pr.bit\")\n",
"\n",
"cpipe = ol.composable"
]
Expand Down
8 changes: 5 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
board = os.environ["BOARD"]
board_folder = "boards/{}".format(board)
notebooks_dir = os.environ["PYNQ_JUPYTER_NOTEBOOKS"]
overlay_dest = "{}/notebooks/".format(module_name)
overlay_dest = "{}/".format(module_name)
data_files = []
cwd = os.getcwd()

Expand Down Expand Up @@ -170,8 +170,10 @@ def download_overlay(board, overlay_dest):
],
entry_points={
"pynq.notebooks": [
"pynq-composable = {}.notebooks".format(
module_name)
"pynq-composable = {}.notebooks".format(module_name)
],
"pynq.overlays": [
"{} = {}.overlay".format(module_name, module_name)
]
},
cmdclass={"build_py": build_py},
Expand Down

0 comments on commit eac23b1

Please sign in to comment.