friture: use sed instead of patch
This commit is contained in:
parent
3b9943f477
commit
5c81b88187
@ -28,9 +28,10 @@ in py.buildPythonApplication rec {
|
||||
rtmixer
|
||||
];
|
||||
|
||||
patches = [
|
||||
./unlock_constraints.patch
|
||||
];
|
||||
postPatch = ''
|
||||
# Remove version constraints from Python dependencies in setup.py
|
||||
sed -i -E "s/\"([A-Za-z0-9]+)(=|>|<)=[0-9\.]+\"/\"\1\"/g" setup.py
|
||||
'';
|
||||
|
||||
preFixup = ''
|
||||
makeWrapperArgs+=("''${qtWrapperArgs[@]}")
|
||||
|
@ -1,30 +0,0 @@
|
||||
diff --git a/setup.py b/setup.py
|
||||
index 886fe78..5dccac0 100644
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -50,17 +50,17 @@ ext_modules = [LateIncludeExtension("friture_extensions.exp_smoothing_conv",
|
||||
# these will be installed when calling 'pip install friture'
|
||||
# they are also retrieved by 'requirements.txt'
|
||||
install_requires = [
|
||||
- "sounddevice==0.4.2",
|
||||
- "rtmixer==0.1.3",
|
||||
- "docutils==0.17.1",
|
||||
- "numpy==1.21.1",
|
||||
- "PyQt5==5.15.4",
|
||||
- "appdirs==1.4.4",
|
||||
- "pyrr==0.10.3",
|
||||
+ "sounddevice<=0.4.2",
|
||||
+ "rtmixer<=0.1.3",
|
||||
+ "docutils<=0.17.1",
|
||||
+ "numpy>=1.21.1",
|
||||
+ "PyQt5<=5.15.4",
|
||||
+ "appdirs<=1.4.4",
|
||||
+ "pyrr<=0.10.3",
|
||||
]
|
||||
|
||||
# Cython and numpy are needed when running setup.py, to build extensions
|
||||
-setup_requires=["numpy==1.21.1", "Cython==0.29.24"]
|
||||
+setup_requires=["numpy>=1.21.1", "Cython<=0.29.24"]
|
||||
|
||||
with open(join(dirname(__file__), 'README.rst')) as f:
|
||||
long_description = f.read()
|
Loading…
Reference in New Issue
Block a user