Comments (12)
So, the question is what do you want to build by default and how do you propose to manage the two different builds....
It would be trivial to default builds to safe fonts by just renaming that directory to "fonts".
from pyfiglet.
The directory pyfiglet/fonts
was removed for some reason. Maybe it's related to this issue #89 (Font licensing).
The one way to fix it is to create pyfiglet/fonts
and put required fonts from pyfiglet/fonts-standard
or/and pyfiglet/fonts-contrib
to it.
from pyfiglet.
Yeah - I removed it so that we can build a package with all the fonts or just those that have a suitable license. You need to pick which by running make minimal
or make full
first. As you can see, that creates the required directory and populates it with the contents of one or both of the font dirs.
It's possible that there's a better way to specify that directly with setuptools, but I haven't looked as this project already used the Makefile.
from pyfiglet.
This should be fixed with #108
from pyfiglet.
@stefanor did you encounter this issue during #114 / #115, can anyone comment, does this remain an issue?
from pyfiglet.
The fix in #108 was definitely wrong. The whole point of the split was to separate cleanly licensed fonts from ones with a less clear license (so that Linux distros can just pick the clean fonts).
People using this codebase must use the makefile to decide which set they build. Looks like 114 still respects that logic.
from pyfiglet.
Thanks for commenting @peterbrittain.
Judging from the error it looks like it lay within the pkg_resources logic which was replaced in #114 so I think it should no longer be an issue.
from pyfiglet.
Revising what I wrote last night: I take it the issue would still be present in some form, since it requires a 'make' invocation.. I guess it might be worth having some logic to load from the other directories if they're there, if someone would like to try and implement a fix.
from pyfiglet.
It depends what you want to achieve.
The distro builders will still want some way to ensure that they just pick up licensed fonts (while others possibly just want everything), so you still need some way to make two different packages. With the legal requirements, you can't create one package with everything. This isn't really what setup.py is designed to do.
What's prompting the revisiting of this issue?
from pyfiglet.
It's that someone git clone
'd the repository and finds that the software fails. In my mind, ideally it should work more or less as if you had installed it via a different route.
from pyfiglet.
Hopefully addressed by #122
from pyfiglet.
I'm going to close this as assumed fixed by #122, please ping this thread if you hit it again and I'll reopen, or file another issue.
from pyfiglet.
Related Issues (20)
- New line after each formatted string HOT 1
- About packing as exe HOT 3
- Lack of spaces with some fonts HOT 2
- How to install fonts HOT 3
- Documentation? HOT 1
- better error handling of "FontNotFound" HOT 2
- Is there an ANSI version of this awesome program? HOT 1
- Migrate from pkg_resources to importlib HOT 5
- Fonts we fail to parse: reEndMarker doesn't match: AttributeError: 'NoneType' object has no attribute 'group' HOT 4
- Fonts with failing tests HOT 4
- Double merge of commits (force push used to correct) HOT 3
- master branch renamed to main
- DeprecationWarning about pkg_resources when running tests HOT 4
- ModuleNotFoundError: no module named 'importlib.resources' when using pyfiglet==1.0.0 and Python 3.6.10 HOT 5
- Missing `requires_python` HOT 3
- AttributeError: module 'importlib.resources' has no attribute 'files' HOT 2
- Add ability to set width to infinity HOT 7
- Thank you! ❤ your contribution to available Python packages.... HOT 5
- Problem with standalone JupyterLab on Windows HOT 2
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 pyfiglet.