I moved the package loading code from pyodide.js into a separate file without other changes.
More specifically I changed `let loadScript;` ==> `export let loadScript;` and I added `import { Module } from "./module";` to the top of the file. Also everything got de-indented.
Split off load-pyodide.js from pyodide.js. I moved the package loading code from pyodide.js into a separate file without other changes.
More specifically I changed `let loadScript;` ==> `export let loadScript;` and I added `import { Module } from "./module";` to the top of the file. Also everything got de-indented.
package:
  name: nlopt
  version: 2.7.0

source:
  url: https://github.com/stevengj/nlopt/archive/v2.7.0.tar.gz
  sha256: b881cc2a5face5139f1c5a30caf26b7d3cb43d69d5e423c9d78392f99844499f

  extras:
    -
      - src/setup.py
      - ./setup.py

requirements:
  run:
    - numpy

build:
  cxxflags: -std=c++11

test:
  imports:
    - nlopt

package:
  name: nlopt
  version: 2.7.0

source:
  url: https://github.com/stevengj/nlopt/archive/v2.7.0.tar.gz
  sha256: b881cc2a5face5139f1c5a30caf26b7d3cb43d69d5e423c9d78392f99844499f

  extras:
    -
      - src/setup.py
      - ./setup.py

requirements:
  run:
    - numpy

build:
  cxxflags: -std=c++11

test:
  imports:
    - nlopt
