GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Building from source · plotdevice/plotdevice · Discussion #59

Building from source #59

samizdatco announced in Announcements
Building from source #59
@samizdatco samizdatco
Jul 11, 2022 · 2 comments
Return to top
Discussion options
  • Uh oh!

    There was an error while loading. Please reload this page.

  • Uh oh!

    There was an error while loading. Please reload this page.

samizdatco
Jul 11, 2022
Maintainer

If you're interested in using the bleeding edge code from the repository, there are a couple of ways to build it yourself.

Module builds

Your best bet is to create a virtual environment and install the module into it. Something like this will work:

git clone https://github.com/plotdevice/plotdevice.git
python3 -m venv env
./env/bin/pip3 install -U pip wheel
./env/bin/pip3 install ./plotdevice

You can then either use the command line tool like this:

./env/bin/plotdevice plotdevice/examples/Drawing/Logo.pv 

or use the virtual environment's python3 and import it yourself:

❯ ./env/bin/python3
Python 3.8.9 (default, May 17 2022, 12:55:41) 
[Clang 13.1.6 (clang-1316.0.21.2.5)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from plotdevice import *

Application builds

If you want the full application, and you have Xcode installed, the easiest approach is to cd into the repository and type:

python3 setup.py app

You can also use py2app but it requires you to install a local copy of PyObjC first (which the dev setup command will add to the deps/local folder for you):

python3 setup.py dev
./deps/local/3.8.9/bin/python3 setup.py py2app

Note that the 3.8.9 in that second command depends on the version of python3 you used for the first command. Look inside the deps/local folder to see what's there.

Once the app or py2app build completes, you'll find the application in the dist directory:

open -R dist/PlotDevice.app
You must be logged in to vote
All reactions
  • ❤️ 2

Replies: 2 comments

Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

dimitre
Jul 14, 2022

Thanks for the guide! I'm updating old Nodebox and Plotdevice projects with the latest!

You must be logged in to vote
All reactions
0 replies
Comment options
  • Uh oh!

    There was an error while loading. Please reload this page.

dimitre
Jul 16, 2022

I've noticed the app built in this process have its own copy of python inside the application.
Is it possible to run using system python3 ? this way I can use fontforge module too :)

You must be logged in to vote
All reactions
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
📣
Announcements
Labels
None yet
2 participants
@samizdatco @dimitre
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.