1
1
mirror of https://github.com/eblot/pybootd.git synced 2024-08-17 18:00:33 +03:00

Tweak setup.py

This commit is contained in:
Emmanuel Blot 2019-09-06 16:23:56 +02:00
parent be1195b25f
commit 1ba2f7d609

View File

@ -17,16 +17,17 @@
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
import os
from distutils.core import setup
from os.path import dirname, join as joinpath
from sys import platform
def _read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
return open(joinpath(dirname(__file__), fname)).read()
requirements = []
if os.uname()[0].lower() == 'darwin':
if platform == 'darwin':
requirements.append('netifaces (>= 0.5)')