Comments (4)
from conda-build.
The jinja2 setuptools template works by patching the setup
function. See here: https://github.com/conda/conda-build/blob/master/conda_build/jinja_context.py#L28-L31
The next error: When you remove the log: , the error caused by:
name: {{data.get('name').lower().replace(' ', '_')}}
Looks a like a bug in the template where name should default to the empty string.
For the last error, the code snippet you showed does not show enough information to help What are the contents of the ../setup.py
file from the line exec(open('../setup.py', encoding='utf-8').read())
Are you using distutils
? because the setuptools
template only supports setup scripts that use setuptools
and not distutils
.
from conda-build.
The test script I wrote seems to patch it the same way.
More importantly, it gets the correct 'name' from setup.py.
However, the jinja_context.py reports a None value.
I use setuptools not distutils.
https://github.com/ezralanglois/arachnid/blob/master/setup.py
I will try to create a simpler version that replicates the problem.
from conda-build.
Hi there, thank you for your contribution!
This issue has been automatically locked because it has not had recent activity after being closed.
Please open a new issue if needed.
Thanks!
from conda-build.
Related Issues (20)
- Conda index CLI reference page maybe should be updated to reference separate conda-index tool HOT 1
- Conda mis-resolved the python version requirement the excluded the specified one HOT 1
- Remove `sys.exit` calls HOT 2
- noarch generic doesn't work as expected when python in host in multi-output HOT 1
- `PackagesNotFound` not converted to `DependencyNeedsBuildingError` HOT 1
- `"safe_dump()" has been removed` error using `conda skeleton pypi pod5` HOT 4
- Long `conda info` error messages for common exceptions HOT 1
- Regression: CondaMemoryError when building HOT 7
- Conda build is stuck with some unrelated build aterfacts. Unable to purge them.
- Limit logging config to CLI
- Deprecate `noarch_python_build_age` MetaData/Config setting
- the MSYS2 prefixes in the cran skeleton are fixed
- InvalidSpec error for spec ">=0.4,<0.4.4" in sktime HOT 8
- setup.py build documentation/implemantation for windows uses deprecated python setup.py install HOT 2
- Improve `cbc.yml` error reporting and validation
- Release 24.5.x
- Undefined environment variables are redefined in build script environment for multi-output builds
- Default Perl variant for cpan skeleton is enforcing a default version in a clean system
- Permissions of `info/*` files are not adjusted
- `meta.yaml` accepts negative build numbers HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from conda-build.