Skip to content

Conversation

@gwhitney
Copy link
Collaborator

@gwhitney gwhitney commented Sep 6, 2022

Adds a helper Node script in tools which examines the platform and
spawns the appropriate command to run the specified program in the
virtual environment set up in this project on install.

Resolves #149.

  Adds a helper Node script in tools which examines the platform and
  spawns the appropriate command to run the specified program in the
  virtual environment set up in this project on install.

  Resolves numberscope#149.
@gwhitney
Copy link
Collaborator Author

gwhitney commented Sep 6, 2022

NOTE: Untested on Windows, which is of course the target environment. I think I got all of the differences needed on Windows, but someone with easy access to a Windows setup please try this PR. It should not be merged before it has been tested on a Windows installation. If there's nobody with a Windows set up that can easily test this, let me know and I can find a way to spin up a Windows instance. Thanks!

@katestange
Copy link
Member

The following is the apparently successful output of npm install. After this I was able to npm run serve and the website shows up. (Windows fought with me about many other things to do with installing python and github cli and all that, but once that was done, numberscope itself with this PR was flawless.)

npm WARN deprecated messageformat@2.3.0: Package renamed as '@messageformat/core', see messageformat.github.io for more details. 'messageformat' will eventually provide a polyfill for Intl.MessageFormat, once it's been defined by Unicode & ECMA.

> frontscope@0.3.0 postinstall
> python3 -m venv .venv && cd tools && node pyrun.mjs pip install -U pip && node pyrun.mjs pip install -r requirements.txt

Requirement already satisfied: pip in c:\users\kates\frontscope\.venv\lib\site-packages (22.2.2)
Collecting mkdocs-semiliterate~=0.6
  Downloading mkdocs_semiliterate-0.6.0-py3-none-any.whl (14 kB)
Collecting mkdocs-awesome-pages-plugin~=2.8
  Downloading mkdocs_awesome_pages_plugin-2.8.0-py3-none-any.whl (13 kB)
Collecting pymdown-extensions~=9.5
  Downloading pymdown_extensions-9.5-py3-none-any.whl (217 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 217.5/217.5 kB 885.5 kB/s eta 0:00:00
Collecting mkdocs-simple-plugin~=1.0
  Downloading mkdocs_simple_plugin-1.1.1-py3-none-any.whl (17 kB)
Collecting mkdocs~=1.3.1
  Downloading mkdocs-1.3.1-py3-none-any.whl (3.7 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.7/3.7 MB 734.2 kB/s eta 0:00:00
Collecting wcmatch>=7
  Downloading wcmatch-8.4-py3-none-any.whl (40 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 40.0/40.0 kB 960.7 kB/s eta 0:00:00
Collecting natsort>=8.1.0
  Downloading natsort-8.2.0-py3-none-any.whl (37 kB)
Collecting markdown>=3.2
  Downloading Markdown-3.4.1-py3-none-any.whl (93 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 93.3/93.3 kB 589.0 kB/s eta 0:00:00
Collecting click>=3.3
  Downloading click-8.1.3-py3-none-any.whl (96 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 96.6/96.6 kB 1.4 MB/s eta 0:00:00
Collecting PyYAML>=3.10
  Downloading PyYAML-6.0-cp310-cp310-win_amd64.whl (151 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 151.7/151.7 kB 1.0 MB/s eta 0:00:00
Collecting Jinja2>=2.10.2
  Downloading Jinja2-3.1.2-py3-none-any.whl (133 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 133.1/133.1 kB 714.3 kB/s eta 0:00:00
Collecting pyyaml-env-tag>=0.1
  Downloading pyyaml_env_tag-0.1-py3-none-any.whl (3.9 kB)
Collecting watchdog>=2.0
  Downloading watchdog-2.1.9-py3-none-win_amd64.whl (78 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 78.4/78.4 kB 257.2 kB/s eta 0:00:00
Collecting ghp-import>=1.0
  Downloading ghp_import-2.1.0-py3-none-any.whl (11 kB)
Collecting mergedeep>=1.3.4
  Downloading mergedeep-1.3.4-py3-none-any.whl (6.4 kB)
Collecting importlib-metadata>=4.3
  Downloading importlib_metadata-4.12.0-py3-none-any.whl (21 kB)
Collecting packaging>=20.5
  Downloading packaging-21.3-py3-none-any.whl (40 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 40.8/40.8 kB 984.2 kB/s eta 0:00:00
Collecting markdown>=3.2
  Downloading Markdown-3.3.7-py3-none-any.whl (97 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 97.8/97.8 kB 803.1 kB/s eta 0:00:00
Collecting MarkupSafe>=2.1.1
  Downloading MarkupSafe-2.1.1-cp310-cp310-win_amd64.whl (17 kB)
Collecting bracex>=2.1.1
  Downloading bracex-2.3.post1-py3-none-any.whl (12 kB)
Collecting colorama
  Downloading colorama-0.4.5-py2.py3-none-any.whl (16 kB)
Collecting python-dateutil>=2.8.1
  Downloading python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 247.7/247.7 kB 724.0 kB/s eta 0:00:00
Collecting zipp>=0.5
  Downloading zipp-3.8.1-py3-none-any.whl (5.6 kB)
Collecting pyparsing!=3.0.5,>=2.0.2
  Downloading pyparsing-3.0.9-py3-none-any.whl (98 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 98.3/98.3 kB 947.3 kB/s eta 0:00:00
Collecting six>=1.5
  Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
Installing collected packages: zipp, watchdog, six, PyYAML, pyparsing, natsort, mergedeep, MarkupSafe, markdown, colorama, bracex, wcmatch, pyyaml-env-tag, python-dateutil, pymdown-extensions, packaging, Jinja2, importlib-metadata, click, ghp-import, mkdocs, mkdocs-simple-plugin, mkdocs-awesome-pages-plugin, mkdocs-semiliterate
Successfully installed Jinja2-3.1.2 MarkupSafe-2.1.1 PyYAML-6.0 bracex-2.3.post1 click-8.1.3 colorama-0.4.5 ghp-import-2.1.0 importlib-metadata-4.12.0 markdown-3.3.7 mergedeep-1.3.4 mkdocs-1.3.1 mkdocs-awesome-pages-plugin-2.8.0 mkdocs-semiliterate-0.6.0 mkdocs-simple-plugin-1.1.1 natsort-8.2.0 packaging-21.3 pymdown-extensions-9.5 pyparsing-3.0.9 python-dateutil-2.8.2 pyyaml-env-tag-0.1 six-1.16.0 watchdog-2.1.9 wcmatch-8.4 zipp-3.8.1

> frontscope@0.3.0 prepare
> husky install

husky - Git hooks installed

added 502 packages, and audited 503 packages in 1m

100 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
npm notice
npm notice New minor version of npm available! 8.15.0 -> 8.19.1
npm notice Changelog: https://github.com/npm/cli/releases/tag/v8.19.1
npm notice Run npm install -g npm@8.19.1 to update!
npm notice
'''

@gwhitney
Copy link
Collaborator Author

gwhitney commented Sep 7, 2022

Thanks so much for testing. Could you please also try npm run build and then nom run preview and if all that works, squash-merge the PR? Thanks!

@liammulh liammulh merged commit be81eb3 into numberscope:main Sep 8, 2022
@liammulh
Copy link
Member

liammulh commented Sep 8, 2022

@Clyde-Kertzer and I did npm run build and npm run preview using this branch yesterday. This is working. I'm going to squash and merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

npm install doesn't work on Windows.

3 participants