Skip to content

Commit 0ce7582

Browse files
authored
ENH: Ensure that sys.path has the current directory in setup.py (#1395)
1 parent 7651e9d commit 0ce7582

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
be provided in place of ``data``. ``OpticalSeries.__init__`` now makes ``data`` optional. However, this has the
5656
side effect of moving the position of ``data`` to later in the argument list, which may break code that relies
5757
on positional arguments for ``OpticalSeries.__init__``. @rly (#1274)
58+
- Fixed `setup.py` not being able to import `versioneer` when installing in an embedded Python environment. @ikhramts (#1395)
5859

5960
## PyNWB 1.5.1 (May 24, 2021)
6061

setup.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
# -*- coding: utf-8 -*-
22

3+
import sys
4+
35
from setuptools import setup, find_packages
46

7+
# Some Python installations don't add the current directory to path.
8+
if '' not in sys.path:
9+
sys.path.insert(0, '')
10+
511
import versioneer
612

713
with open('README.rst', 'r') as fp:

0 commit comments

Comments
 (0)