Skip to content

Commit

Permalink
ENH: Ensure that sys.path has the current directory in setup.py (#662)
Browse files Browse the repository at this point in the history
  • Loading branch information
rly authored Aug 13, 2021
1 parent df31c59 commit 45eced0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# HDMF Changelog

## HDMF 3.1.2 (Upcoming)

### Fixes
- Fixed `setup.py` not being able to import `versioneer` when installing in an embedded Python environment. @rly (#662)

## HDMF 3.1.1 (July 29, 2021)

### Fixes
Expand Down
8 changes: 7 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# -*- coding: utf-8 -*-
# -*- coding: utf-8 -*
import sys

from setuptools import setup, find_packages

# Some Python installations don't add the current directory to path.
if '' not in sys.path:
sys.path.insert(0, '')

import versioneer

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

0 comments on commit 45eced0

Please sign in to comment.