Skip to content

Commit

Permalink
unit leftover fixed, conda build cleanp
Browse files Browse the repository at this point in the history
  • Loading branch information
mpatrou committed Feb 18, 2025
1 parent f58c336 commit 06a3f78
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
4 changes: 2 additions & 2 deletions conda.recipe/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ cd lib/
src_files=$(ls *.cc)

mkdir -p $PREFIX/lib
g++ -c -fPIC $src_files
g++ -shared -o $PREFIX/lib/libhistogram.so $(ls *.o)
${CXX} -c -fPIC $src_files
${CXX} -shared -o $PREFIX/lib/libhistogram.so $(ls *.o)
cd ..

#Python files
Expand Down
4 changes: 0 additions & 4 deletions conda.recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ build:
- CXX
noarch: python
number: {{ build_number }}
#script: ./build.sh
#string: py{{py}}
#script: {{ PYTHON }} -m pip install . --no-deps --ignore-installed -vvv
#https://docs.conda.io/projects/conda-build/en/stable/resources/define-metadata.html

requirements:
host:
Expand Down
2 changes: 1 addition & 1 deletion src/histogram/Histogram.py
Original file line number Diff line number Diff line change
Expand Up @@ -1103,9 +1103,9 @@ def test_equalUnit():
assert _equalUnit(1, 1) == True
assert _equalUnit(1, 1 + 1e-10) == True
from . import _units as units
from histogram.utils.units.SI import second

meter = units.length.meter
second = units.time.second
assert _equalUnit(1 * meter, 1 * meter) == True
assert _equalUnit(1 * meter, 1) == False
assert _equalUnit(1 * meter, 1 * second) == False
Expand Down

0 comments on commit 06a3f78

Please sign in to comment.