Comments (6)
Yeah... macOS does not ship GNU coreutils by default, you need to install them via brew or in some other way. That makes me wonder, which make implementation is shipped by default (if any)? Could you paste the output of make --version
?
I am hesitant to change installation instructions as you suggested, because calling Perl to calculate a hash sum instead of using coreutils feels deeply wrong to me. I think I'll add a note about coreutils and mention your workaround too.
from makefile.venv.
Output for make --version
:
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
This program built for i386-apple-darwin11.3.0
By the way, may I ask why not using coreutils is bad?
from makefile.venv.
Oh, it's not bad and it's not about coreutils per se. It just feels wrong to me to call into interpreted language for a number-crunching task when there exists a compiled binary tool for the same purpose.
from makefile.venv.
Personally, I don't think the performance loss is really significant, since the file Makefile.venv
isn't really big. Yet, if shasum
is shipped with all Linux distributions plus MacOS, so why not use it?
Apologise if I ask a stupid question!
from makefile.venv.
Your question is not stupid :) I'm being somewhat irrational here, you're right about performance being similar for small files. I'm being too much of a GNU fanboy :)
I'll look into how ubiquitous Perl currently is. I'll check if common Docker containers ship with Perl included, since it's the only scenario I could think of that's questionable. Then I will take a 1-2 day pause to let this sink in, but yeah, the rational thing would be to agree with you.
from makefile.venv.
My intuition proved correct. shasum
is not included into any of base Docker images (Alpine, Debian, Ubuntu, Centos). Even though shasum
is part of Perl package, deb-based distros provide a smaller perl-base
(without shasum
) which is enough for OS tools to function.
On the other hand, GNU coreutils are present in each of those images.
I'll add a note about macOS to README now, but the instructions should stay unchanged.
from makefile.venv.
Related Issues (19)
- Expose the VENV to child processes HOT 4
- control over pip version HOT 4
- Trying to install the local project isn't necessarily desired HOT 7
- Python Launcher for Windows HOT 11
- Execute CI in bare Windows environment HOT 2
- CI failure on Windows 10 / Python 3.9.10 HOT 3
- $(RM) HOT 1
- Support for cygwin (with proposed solution) HOT 6
- Using `venv` as a proper dependency HOT 3
- pyproject.toml HOT 3
- Source .env for interactive shell targets HOT 2
- Install pyproject.toml optional dependencies HOT 2
- Execute CI tests in Cygwin HOT 1
- Spaces in path fatally confuse the script HOT 5
- Error when overriding the VENVDIR HOT 9
- How to pass arguments to pip install? HOT 6
- support generated requirements .txt files HOT 4
- Write docs for pipenv/poetry integration
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 makefile.venv.