GithubHelp home page GithubHelp logo

Cannot build on windows machines about nimi-python HOT 11 CLOSED

ni avatar ni commented on September 4, 2024
Cannot build on windows machines

from nimi-python.

Comments (11)

marcoskirsch avatar marcoskirsch commented on September 4, 2024

Our plan was to move to GNU make. Lowering the bar for building for contributors that are on Windows systems, which will be the most common since they need Windows to test, is a good idea.

from nimi-python.

epage avatar epage commented on September 4, 2024

I feel like make will not help the barrier to entry for windows developers. Keeping it within the python ecosystem seems like it'd be best, like using a basic build.py or using a tool like waf.

from nimi-python.

marcoskirsch avatar marcoskirsch commented on September 4, 2024

My gut feeling is: start with a hand-coded build.py and only move to waf if we feel it's worth it.
@texasaggie97 you've been looking at GNU Make. What do you think about this?

from nimi-python.

marcoskirsch avatar marcoskirsch commented on September 4, 2024

Related: pull #14 uses GNU Make.

from nimi-python.

texasaggie97-zz avatar texasaggie97-zz commented on September 4, 2024

I have switched to build.py. See PR #14

from nimi-python.

marcoskirsch avatar marcoskirsch commented on September 4, 2024

#14 has been merged.

from nimi-python.

Fladolcetta avatar Fladolcetta commented on September 4, 2024

All,

I have tested this and it fails with the following error.

"
C:\Users\Administrator\Desktop\nimi-python-master>python35 ./build.py
codegen_path = C:\Users\Administrator\Desktop\nimi-python-master\src\codegen
Traceback (most recent call last):
File "./build.py", line 103, in
main()
File "./build.py", line 60, in main
codegen = path_import(codegen_path)
File "./build.py", line 32, in path_import
module = importlib.import_module(os.path.basename(absolute_path))
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python35-32\lib\importlib_init_.py",
line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 986, in _gcd_import
File "", line 969, in _find_and_load
File "", line 958, in _find_and_load_unlocked
File "", line 673, in load_unlocked
File "", line 662, in exec_module
File "", line 222, in call_with_frames_removed
File "C:\Users\Administrator\Desktop\nimi-python-master\src\codegen_init
.py", line 2, in
from src.codegen.generateTemplate import configure_logging
File "C:\Users\Administrator\Desktop\nimi-python-master\src\codegen_init
.py", line 2, in
from src.codegen.generateTemplate import configure_logging
File "C:\Users\Administrator\Desktop\nimi-python-master\src\codegen\generateTemplate.py", line 3, in
from mako.template import Template
ImportError: No module named 'mako'
"

from nimi-python.

marcoskirsch avatar marcoskirsch commented on September 4, 2024

Missing dependency. You need to install mako.

from nimi-python.

Fladolcetta avatar Fladolcetta commented on September 4, 2024

This wont be required of customers right, just developers?

from nimi-python.

marcoskirsch avatar marcoskirsch commented on September 4, 2024

Missing dependency. You need to install mako.

This wont be required of customers right, just developers?

Correct, this is for people who want to contribute. Mako is the template engine.
Were we to add a dependency to our modules, such as numpy, then we'd set it up so they get installed as part of the PyPI installation.

from nimi-python.

Fladolcetta avatar Fladolcetta commented on September 4, 2024

Build on my local machine after installing mako

from nimi-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.