Downloads:

1,642

Downloads of v 0.3.0.20210220:

124

Last Update:

20 Feb 2021

Package Maintainer(s):

Software Author(s):

  • Manim Contributors

Tags:

manim python animation math

ManimCE Install

0.3.0.20210220 | Updated: 20 Feb 2021

Downloads:

1,642

Downloads of v 0.3.0.20210220:

124

Software Author(s):

  • Manim Contributors

ManimCE Install 0.3.0.20210220

This Package Contains an Exempted Check

1 Test Passing and 1 Exempted Test


Validation Testing Passed


Verification Testing Exempt:

Dependency requires reboot

To install ManimCE Install, run the following command from the command line or from PowerShell:

>

To upgrade ManimCE Install, run the following command from the command line or from PowerShell:

>

To uninstall ManimCE Install, run the following command from the command line or from PowerShell:

>

NOTE: This applies to both open source and commercial editions of Chocolatey.

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

  • Open Source or Commercial:
    • Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to https://chocolatey.org/api/v2. Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
    • You can also just download the package and push it to a repository Download

3. Enter your internal repository url

(this should look similar to https://chocolatey.org/api/v2)

4. Choose your deployment method:


choco upgrade manimce -y --source="'STEP 3 URL'" [other options]

See options you can pass to upgrade.

See best practices for scripting.

Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.

If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:


choco upgrade manimce -y --source="'STEP 3 URL'"
$exitCode = $LASTEXITCODE

Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
  Exit 0
}

Exit $exitCode

- name: Ensure manimce installed
  win_chocolatey:
    name: manimce
    state: present
    version: 0.3.0.20210220
    source: STEP 3 URL

See docs at https://docs.ansible.com/ansible/latest/modules/win_chocolatey_module.html.

Coming early 2020! Central Managment Reporting available now! More information...


chocolatey_package 'manimce' do
  action    :install
  version  '0.3.0.20210220'
  source   'STEP 3 URL'
end

See docs at https://docs.chef.io/resource_chocolatey_package.html.


Chocolatey::Ensure-Package
(
    Name: manimce,
    Version: 0.3.0.20210220,
    Source: STEP 3 URL
);

Requires Otter Chocolatey Extension. See docs at https://inedo.com/den/otter/chocolatey.


cChocoPackageInstaller manimce
{
   Name     = 'manimce'
   Ensure   = 'Present'
   Version  = '0.3.0.20210220'
   Source   = 'STEP 3 URL'
}

Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.


package { 'manimce':
  provider => 'chocolatey',
  ensure   => '0.3.0.20210220',
  source   => 'STEP 3 URL',
}

Requires Puppet Chocolatey Provider module. See docs at https://forge.puppet.com/puppetlabs/chocolatey.


salt '*' chocolatey.install manimce version="0.3.0.20210220" source="STEP 3 URL"

See docs at https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.chocolatey.html.

5. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

This package was approved as a trusted package on 20 Feb 2021.

Description

Manim is an animation engine written in Python primarily used to create explanatory math videos such as those of 3Blue1Brown. It allows for the creation of precise animations programmatically. For more info, see the GitHub repo.

This package aims to simplify the historically painful process of setting up Manim on Windows. After installation you can execute your animation scripts with manim <file>.py.

File any issues at https://github.com/manimcommunity/manim/issues

NOTE: This package installs the community version of manim, which is different from https://github.com/3b1b/manim, mainly because it is developed by a team of volunteer developers. This software is currently under development and may be out of date, unstable, buggy, or not even run at all when installed.

This installs manim using pip with its dependencies.

NOTE: This is an automatically updated package. If you find it is out of date by more than a week, please contact the maintainer(s) and let them know the package is no longer updating correctly.


tools\chocolateybeforemodify.ps1
$InstallLocation = Get-ToolsLocation
Copy-Item -LiteralPath "$InstallLocation\Manim\installInfo.json" -Destination "$InstallLocation" -Force
Remove-Item $InstallLocation\Manim -Recurse
mkdir $InstallLocation\Manim
Copy-Item -LiteralPath "$InstallLocation\installInfo.json" -Destination "$InstallLocation\Manim" -Force
tools\chocolateyinstall.ps1
$ErrorActionPreference = 'Stop';
$InstallLocation = Get-ToolsLocation
$version = '0.3.0'

$python = (Get-Command python).source #to lock over specific python version
if ($null -eq $python) {
  $python = (Get-Command python).Definition #support powershell 4 as it has different syntax for above one
}

Write-Host "Found python at '$python' using it."
Write-Host "Using python version $(python --version --version)" -ForegroundColor Red
$sitePackageFolder = & "$python" -c "import sysconfig;print(sysconfig.get_path('purelib'))"
New-Item -ItemType Directory -Force -Path "$sitePackageFolder"
$install = @{
  "python"            = $python
  "sitePackageFolder" = $sitePackageFolder
}  | ConvertTo-Json
New-Item -ItemType Directory -Force -Path "$InstallLocation\Manim"
New-Item "$InstallLocation\Manim\installInfo.json" -Force -ItemType file -Value $install #save install info

Write-Host "Upgrading pip and install Wheel" -ForegroundColor Yellow
& "$python" -m ensurepip
& "$python" -m pip install --upgrade pip wheel

Write-Host "Installing Manim to $InstallLocation\Manim"
& "$python" -m pip install "manim==$version" --no-cache --compile --prefix="$InstallLocation\Manim" --no-warn-script-location --log="pip.log"

Write-Host "Making $python detect the Manim"
New-Item -ItemType Directory -Force -Path "$sitePackageFolder"
$pthFilePath = "$sitePackageFolder\manimce.pth"
$pthFileContent = "$InstallLocation\Manim\Lib\site-packages"
$Utf8NoBomEncoding = New-Object System.Text.UTF8Encoding $False
[System.IO.File]::WriteAllLines($pthFilePath, $pthFileContent, $Utf8NoBomEncoding)


Write-Host "Adding $InstallLocation\Manim\Scripts to `$PATH"
Install-ChocolateyPath "$InstallLocation\Manim\Scripts" 'Machine'
tools\chocolateyuninstall.ps1
$ErrorActionPreference = 'Stop';
$toolsPath = Split-Path $MyInvocation.MyCommand.Definition
$InstallLocation = Get-ToolsLocation
. $toolsPath\helper.ps1
Uninstall-ChocolateyPath "$InstallLocation\Manim\Scripts"

$installInfo = Get-Content "$InstallLocation\Manim\installInfo.json" | ConvertFrom-JSON
Remove-Item `
  -Path "$($installInfo.sitePackageFolder)\manimce.pth" `
  -Force
tools\helper.ps1
if (!(Test-Path function:\Uninstall-ChocolateyPath)) {
  function Uninstall-ChocolateyPath {
    param(
      [string]$pathToRemove,
      [System.EnvironmentVariableTarget] $pathType = [System.EnvironmentVariableTarget]::User
    )

    Write-Debug "Running 'Uninstall-ChocolateyPath' with pathToRemove: `'$pathToRemove`'"

    # get the PATH variable
    Update-SessionEnvironment
    $envPath = $env:PATH
    if ($envPath.ToLower().Contains($pathToRemove.ToLower())) {
      Write-Host "The PATH environment variable already contains the directory '$pathToRemove'. Removing..."
      $actualPath = Get-EnvironmentVariable -Name 'Path' -Scope $pathType -PreserveVariables

      $newPath = $actualPath -replace [regex]::Escape($pathToRemove + ';'),'' -replace ';;',';'

      if (($pathType -eq [System.EnvironmentVariableTarget]::Machine) -and !(Test-ProcessAdminRights)) {
        Write-Warning "Removing path from machine environment variable is not supported when not running as an elevated user!"
      } else {
        Set-EnvironmentVariable -Name 'Path' -Value $newPath -Scope $pathType
      }

      $env:PATH = $newPath
    }
  }
}

Log in or click on link to see number of positives.

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Version Downloads Last Updated Status
ManimCE Install 0.3.0.20210208 84 Monday, February 8, 2021 Approved
ManimCE Install 0.3.0 25 Tuesday, February 2, 2021 Approved
ManimCE Install 0.2.0.20210115 11 Friday, January 15, 2021 Approved
ManimCE Install 0.2.0 615 Saturday, January 2, 2021 Approved
ManimCE Install 0.1.1 278 Saturday, December 5, 2020 Approved
ManimCE Install 0.1.0.20201114 33 Wednesday, November 25, 2020 Approved
ManimCE Install 0.1.0 472 Friday, October 23, 2020 Approved

Discussion for the ManimCE Install Package

Ground Rules:

  • This discussion is only about ManimCE Install and the ManimCE Install package. If you have feedback for Chocolatey, please contact the Google Group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or ManimCE Install, or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.
comments powered by Disqus