Skip to content

Commit 9e64b53

Browse files
committed
Don't hate people by having pygame in core requirements
1 parent 1122dea commit 9e64b53

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

demosys/timers/music.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
import glfw
2-
from pygame import mixer
32
from demosys.conf import settings
43
from .base import BaseTimer
54

5+
try:
6+
from pygame import mixer
7+
except ImportError as e:
8+
print("pygame is needed for audio playback")
9+
610

711
class MusicTimer(BaseTimer):
812
"""Timer based on music"""

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ Pillow==4.0.0
55
pyrocket==0.2.5
66

77
# Optional
8-
pygame==1.9.3
8+
#pygame==1.9.3

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
'pyrr==0.8.2',
3131
'Pillow==4.0.0',
3232
'pyrocket==0.2.5',
33-
'pygame==1.9.3',
33+
# 'pygame==1.9.3',
3434
],
3535
entry_points={'console_scripts': [
3636
'demosys-admin = demosys.core.management:execute_from_command_line',

0 commit comments

Comments
 (0)