Downloads:

17,672

Downloads of v 0.3.0:

93

Last Update:

02 Feb 2021

Package Maintainer(s):

Software Author(s):

  • Manim Contributors

Tags:

manim python animation math

ManimCE Install

This is not the latest version of ManimCE Install available.

  • 1
  • 2
  • 3

0.3.0 | Updated: 02 Feb 2021

Downloads:

17,672

Downloads of v 0.3.0:

93

Software Author(s):

  • Manim Contributors

  • 1
  • 2
  • 3
ManimCE Install 0.3.0

This is not the latest version of ManimCE Install available.

  • 1
  • 2
  • 3

This Package Contains an Exempted Check

Not All Tests Have Passed


Validation Testing Passed


Verification Testing Exemption:

Dependency requires reboot

Details

Scan Testing Successful:

No detections found in any package files

Details
Learn More

Deployment Method: Individual Install, Upgrade, & Uninstall

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:

>

Deployment Method:

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

1. Enter Your Internal Repository Url

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


2. Setup Your Environment

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

2. Get the package into your environment

  • 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://community.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. Copy Your Script

choco upgrade manimce -y --source="'INTERNAL REPO URL'" --version="'0.3.0'" [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="'INTERNAL REPO URL'" --version="'0.3.0'" 
$exitCode = $LASTEXITCODE

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

Exit $exitCode

- name: Install manimce
  win_chocolatey:
    name: manimce
    version: '0.3.0'
    source: INTERNAL REPO URL
    state: present

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


chocolatey_package 'manimce' do
  action    :install
  source   'INTERNAL REPO URL'
  version  '0.3.0'
end

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


cChocoPackageInstaller manimce
{
    Name     = "manimce"
    Version  = "0.3.0"
    Source   = "INTERNAL REPO URL"
}

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


package { 'manimce':
  ensure   => '0.3.0',
  provider => 'chocolatey',
  source   => 'INTERNAL REPO URL',
}

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


4. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

This package was approved by moderator TheCakeIsNaOH on 16 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" -m site --user-site
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 "Install Numpy v1.19.3 to avoid problems"
& "$python" -m pip install --upgrade numpy==1.19.3

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.

Add to Builder Version Downloads Last Updated Status
Manim Install 0.15.1.20220312 1674 Saturday, March 12, 2022 Approved
Manim Install 0.15.1 121 Wednesday, March 9, 2022 Approved
Manim Install 0.15.0 440 Sunday, February 27, 2022 Approved
Manim Install 0.14.0 1830 Saturday, January 8, 2022 Approved
Manim Install 0.13.1.20211214 952 Tuesday, December 14, 2021 Approved
Manim Install 0.13.1 316 Sunday, December 5, 2021 Approved
Manim Install 0.13.0 27 Saturday, December 4, 2021 Approved
Manim Install 0.12.0.20211108 938 Monday, November 8, 2021 Approved
Manim Install 0.12.0 401 Tuesday, November 2, 2021 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